diff --git a/DESCRIPTION b/DESCRIPTION index 7edf872..06292d2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -25,7 +25,7 @@ Description: Fits single- and multiple-group penalized factor analysis models License: GPL-3 Depends: R(>= 3.5.0) Imports: MASS, methods, mgcv, GJRM, stats, trust, utils -Suggests: cartography, knitr, plotly, rmarkdown +Suggests: knitr, plotly, rmarkdown VignetteBuilder: knitr Encoding: UTF-8 LazyData: true diff --git a/R/methods.R b/R/methods.R index 05c04de..89ecd3d 100644 --- a/R/methods.R +++ b/R/methods.R @@ -1011,7 +1011,10 @@ plot.penfaPenMat <- function(x, ..., # log1p to handle zeroes logx <- log1p(abs(x)) if(is.null(col)){ - col <- cartography::carto.pal(pal1 = "blue.pal", n1 = 20) + col <- c("#DCF0F8", "#D0E8F2", "#C4E0EC", "#B9D8E7", "#ADD0E1", "#A1C8DC", + "#96C0D6", "#8AB8D0", "#7EB0CB", "#6EA6C3", "#5F9BBC", "#4F91B4", + "#4086AD", "#307BA5", "#236F9A", "#1E6085", "#19506F", "#14405A", + "#0F3045", "#0B2130") } p <- plotly::plot_ly(x = rownames(logx),