line | R Documentation |
Creates a line plot of the data.
line(
file,
x_column,
y_column,
symbol,
line_type,
auto_fit = TRUE,
primary_color,
secondary_color
)
file |
A csv file with the source data |
x_column |
Name of the column from the file you want to plot on the x-axis |
y_column |
Name of the column from the file you want to plot on the y-axis |
symbol |
Number of the symbol you want for the plot |
line_type |
The type of line you want for the line plot |
auto_fit |
Put false to start from 0, True shows the best fit. |
primary_color |
First color for line plot |
secondary_color |
Second color for line plot |
This function creates a plot based on the format of the data
A line plot
Emiel Creus
## Not run:
line("testdata.csv",
"column_1",
"column_2", 5, 2, TRUE,
"#004D9A",
"#002142")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.