Description Usage Arguments Value Author(s)
This is a encapsulated function to make a scatterplot using the ggplot2 package. It allows the users to control the plot color, size, and other styles using arguments.
1 2 3 4 |
data |
A data.frame containing all the variables needed to draw the box plot. |
x |
A character string indicating the x axis variable. |
y |
A character string indicating the y axis variable. |
cols |
A character string indicating the variable defines faceting groups on columns. |
rows |
A character string indicating the variable defines faceting groups on rows. |
color |
A character string indicating the variable defines the color of lines or points. |
trendline |
Logic value whether to draw a linear trandline. |
trendline.color |
DESCRIPTION. |
trendline.size |
DESCRIPTION. |
show.points |
DESCRIPTION. |
point.size |
Numeric value defines the size of points. |
point.alpha |
Numeric value defines the transparency. |
point.color |
Character value defines the color of points when the argument 'color' is not specified. |
color.pal |
Character vector defines the color panel to use. |
show.legend |
Logic value defines whether to show legend. |
a ggplot object
Chenghao Zhu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.