myplot | R Documentation |
generate a plot from a data frame with color and line type set by specific columns
myplot(
x,
y,
col = NULL,
style = NULL,
data = .GlobalEnv,
legend.position = "topright",
...
)
x |
column name for the x values, needs to be a string |
y |
column name for the y values, needs to be a string |
col |
column name for the colour attributes, can be of any type, distinct values are represented by distinct colours |
style |
column name for the line type attributes, can be of any type, distinct values are represented by distinct line types |
data |
data frame |
legend.position |
where to place the legend |
... |
other plotting parameters |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.