nanxstats / ggsci

🦄 Scientific journal and sci-fi themed color palettes for ggplot2
https://nanx.me/ggsci/
GNU General Public License v3.0
664 stars 71 forks source link

scale_color_observable does not work #53

Closed lrose1 closed 3 months ago

lrose1 commented 3 months ago
library(ggplot2)
library(ggsci)
ggplot(
  subset(diamonds, carat >= 2.2),
  aes(x = table, y = price, colour = cut)) +
  geom_point(alpha = 0.7) +
  geom_smooth(method = "loess", alpha = 0.1, size = 1, span = 1) +
  theme_bw() +
  scale_color_observable()
Error in scale_color_observable() : 
  could not find function "scale_color_observable"

It is also not part of ggsci:: This is on version 3.2.0

nanxstats commented 3 months ago

Can't reproduce the issue on my side. Make sure you're actually using ggsci >= 3.2.0. You can see the installed package version with packageVersion("ggsci") The library paths can be checked using .libPaths().

lrose1 commented 3 months ago

Apologies, stupid mistake