set_dataline | R Documentation |
Either set aesthetics of the default data line or add another data line.
set_dataline(
object,
variable = NULL,
line,
point,
type = "continuous",
label = NULL,
...
)
add_dataline(...)
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" |
label |
A character string which is used to set the label in a legend. |
... |
As a shortcut, arguments passed hear are bundled as |
An object of class scplot
(seescplot()
) with a changed datalines
element.
element_line()
, element_point()
data(exampleAB_add, package = "scan")
scplot(exampleAB_add) |>
set_dataline("depression", color = "darkblue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.