From 5e3d637ac224d894f74e7e94c58c7feb514352b7 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Tue, 7 Mar 2023 20:14:29 -0500 Subject: [PATCH] Move global option note into FAQ vignette --- README.Rmd | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/README.Rmd b/README.Rmd index 08fcade..e951137 100644 --- a/README.Rmd +++ b/README.Rmd @@ -53,27 +53,6 @@ remotes::install_github("nanxstats/ggsci") [Browse the vignette](https://nanx.me/ggsci/articles/ggsci.html) (or open with `vignette("ggsci")` in R) for a quick-start guide. -## Usage - -```{r, eval=FALSE} -library(ggsci) -#in base plots -x = factor(mtcars$cyl, labels=pal_jama()(3)) -plot(x = mtcars$mpg, y = mtcars$hp, col = x, pch = 16) - -#in ggplot2 -library(ggplot2) -ggplot(mtcars, aes(x = mpg, y = hp, color = factor(cyl))) + - geom_point() + - scale_color_nejm() - -#in ggplot2, using options -options(ggplot2.discrete.colour=ggsci::scale_colour_lancet) -ggplot(mtcars, aes(x = mpg, y = hp, color = factor(cyl))) + - geom_point() - -``` - ## Gallery ```{r}