newNPTheme: Creat a NicePlots Theme

View source: R/niceThemes.R

newNPThemeR Documentation

Creat a NicePlots Theme

Description

Makes a new NicePlots theme off of an existing template

Usage

newNPTheme(theme = basicTheme, plotColors = NULL, ...)

Arguments

theme

list; A NicePlots plotColor list from a theme or a list with values corresponding to the plotColor options you wish to update.

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.

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.

Value

A NicePlots theme of class "npTheme".

See Also

npThemes

Examples

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)

ZachHunter/NicePlots.R documentation built on Sept. 23, 2023, 4:04 a.m.