View source: R/dualaxesscatter.R
dualaxscatter | R Documentation |
Creates a plot of the data with multiple scatter plots that have a different scale.
dualaxscatter(
file,
x_column,
y_columns,
legend_pos,
primary_color,
secondary_color,
tertiary_color,
quaternary_color,
quinary_color,
senary_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_columns |
Name of the columns from the file you want to plot on the y-axes |
legend_pos |
the position of the legend |
primary_color |
First color for scatter plot |
secondary_color |
Second color for scatter plot |
tertiary_color |
Third color for scatter plot |
quaternary_color |
Fourth color for scatter plot |
quinary_color |
Fifth color for scatter plot |
senary_color |
Sixth color for scatter plot |
This function creates a plot with multiple scatter plots and a different scale based on the format of the data
A multiple line plot with multiple scales
Emiel Creus
## Not run:
dualaxscatter("Testdata.csv",
"Year",
c("Quota", "Incidents","Complatins"),
"topleft","red","green","orange",
"yellow","blue","black")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.