I am trying to run the code (end of post) from this blog (world map of where R package is being downloaded from)
Everything is fine, except when I try to execute
wm
I get
> wm
Error in grid.Call.graphics(C_polygon, x$x, x$y, index) :
invalid color name 'blackcat'
I am expecting this instead,
How to troubleshoot?
install.packages(devtools)
library(devtools)
install_github("talgalili/installr", username="talgalili")
library(installr)
RStudio_CRAN_data_folder <- download_RStudio_CRAN_data(START = '2013-06-10',
END = '2013-06-17')
my_RStudio_CRAN_data <- read_RStudio_CRAN_data(RStudio_CRAN_data_folder)
wm <- pkgDNLs_worldmapcolor(pkg_name="timeROC",
dataset = my_RStudio_CRAN_data)
wm
blackcat
, but if you look at the code ofpkgDNLs_worldmapcolor
you can see it is hard-coded. So you can either copy the function and tweak that, or else use an idea from here and dowm$layers[[1]]$aes_params$colour <- "black"
. then it should plotwm$layers[[1]]$aes_params$colour <- "black"
works