style_plot {scan}R Documentation

Create styles for single-case data plots

Description

The style_plot function is used to create graphical styles for a single-case plot

Usage

style_plot(style = "default", ...)

Arguments

style

A character string or a vector of character strings with predefined styles.

...

Further arguments passed to the plot command.

Details

style_plot("") will return a list of predefined styles. Predefined styles can be combined style_plot(style = c("grid2", "tiny")) where settings of a latter style overwrite settings of the former. Additional style paramters are set following the style argument and can be combined with those: style_plot(style = "grid2", fill = "grey50", pch = 18).

Value

Returns a list to be provided for the style argument of the plot.scdf() function.

Author(s)

Juergen Wilbert

See Also

plot.scdf()

Examples

newstyle <- style_plot(style = "default")
newstyle$text.ABlag <- c("START", "END")
newstyle$col.dots <- ""
newstyle$annotations <- list(cex = 0.6, col = "grey10", offset = 0.4)
newstyle$names <- list(cex = 0.8, col = "blue", side = 1, adj = 1, line = -1, at = 31)
newstyle$fill.bg <- c("grey99", "grey95", "grey90")
plot(exampleABC, style = newstyle, main = "Example Plot")


[Package scan version 0.61.0 Index]