scatter | R Documentation |
Creates a scatter plot of the data.
scatter(
file,
x_column,
y_column,
symbol,
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 representing the symbol used for the scatter plot |
auto_fit |
Put false to start from 0, True shows the best fit. |
primary_color |
First color for bar plot |
secondary_color |
Second color for bar plot |
This function creates a plot based on the format of the data
A scatter plot
Emiel Creus
## Not run:
scatter("testdata.csv",
"column_1", "column2",
2, FALSE,
"#004D9A", "#002142")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.