Description Usage Arguments Value Examples
View source: R/sbpiper_plots.r
Plot a generic scatter plot
1 2 | scatterplot(df, g = ggplot(), colNameX = "x", colNameY = "y",
dot_size = 0.5)
|
df |
a data frame |
g |
the current ggplot to overlap |
colNameX |
the name of the column for the X axis |
colNameY |
the name of the column for the Y axis |
dot_size |
the size of the dots in the scatterplot |
the plot
1 2 | df <- data.frame(a=rnorm(10000), b=rnorm(10000))
scatterplot(df, colNameX="a", colNameY="b")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.