newNPTheme | R Documentation |
Makes a new NicePlots
theme off of an existing template
newNPTheme(theme = basicTheme, plotColors = NULL, ...)
theme |
list; A |
plotColors |
list; a named list of vectors of colors that set the color options for all NicePlot functions. Names left unspecified will be added and set to default values automatically. |
... |
All theme options can be set but as if they were comma separted funcitonal arguments. See example for details. |
Useing an exisiting template, this function updates all of the options theme options
supplied in ...
. To see the theme options, print an existing theme to the console.
You can see the available themes using the npThemes
function.
A NicePlots
theme of class "npTheme".
npThemes
data(iris)
npThemes()
myTheme<-newNPTheme(theme=npColorTheme,
plotColors=list(lines=c("darkgrey")),
pointMethodBP="beeswarm")
npThemes()
niceBox(iris[,1:2],iris$Species,subgroup=TRUE,legend=TRUE,theme=myTheme)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.