Skip to content

Commit

Permalink
added ngme2 supprot
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcabral96 committed Oct 31, 2024
1 parent 4304d44 commit 163ac4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.1
Imports:
ngme,
ngme2,
foreach,
Matrix,
Rcpp
Rcpp,
latex2exp
Depends:
INLA,
GIGrvg
Expand Down
2 changes: 1 addition & 1 deletion R/ngvb-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @import ggplot2
## usethis namespace: start
#' @importFrom Rcpp sourceCpp
#' @importFrom ngme rGIG
#' @importFrom ngme2 rGIG
#' @importFrom scales hue_pal
#' @importFrom latex2exp TeX
#' @importFrom ggpubr ggarrange
Expand Down
2 changes: 1 addition & 1 deletion R/plotfunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ plot.gaussdiag <- function(x, n = rep(0,nrow(x$BF.check)), samples = NULL, ...){
size=1.5) +
scale_colour_manual("",
values = c("s(\\mathbf{y}^{pred})" = "black", "s(\\mathbf{y})" = color.vector[i]),
labels = c(TeX("s(\\mathbf{y}^{pred})"),TeX("s(\\mathbf{y})")))+
labels = c(TeXlibrary("s(\\mathbf{y}^{pred})"),TeX("s(\\mathbf{y})")))+
xlab("BF sensitivity") +
ylab("density") +
xlim(min(-4*sds[i], x$BF.check$s0.mode[i]*1.1), max(4*sds[i], x$BF.check$s0.mode[i]*1.1)) +
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It requires the packages `INLA` and `ngme` which can be installed by:

```
install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/testing"), dep=TRUE)
remotes::install_github("davidbolin/ngme", ref = "devel")
remotes::install_github("davidbolin/ngme2", ref = "devel")
```

The `ngvb` package can be installed using the command:
Expand Down

0 comments on commit 163ac4e

Please sign in to comment.