set_dataline {scplot} | R Documentation |
Set data lines of an scplot
Description
Either set aesthetics of the default data line or add another data line.
Usage
set_dataline(object, variable = NULL, line, point, type = "continuous", ...)
add_dataline(...)
Arguments
object |
An scplot object (class |
variable |
String. The name of a new variable for adding a new line. If left empty, the aesthetics of the default data line are changed. |
line |
List with line parameters ( |
point |
A list with point parameters ( |
type |
Either "continuous" or "discrete" |
... |
As a shortcut, arguments passed hear are bundled as |
Value
An object of class scplot
(seescplot()
) with a changed datalines
element.
See Also
element_line()
, element_point()
Examples
data(exampleAB_add, package = "scan")
p1 <- scplot(exampleAB_add) |>
set_dataline("depression", color = "darkblue")
[Package scplot version 0.4.0 Index]