Learn R Programming

sbpiper (version 1.9.0)

scatterplot: Plot a generic scatter plot

Description

Plot a generic scatter plot

Usage

scatterplot(df, g = ggplot(), colNameX = "x", colNameY = "y",
  dot_size = 0.5)

Arguments

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

Value

the plot

Examples

Run this code
# NOT RUN {
df <- data.frame(a=rnorm(10000), b=rnorm(10000))
scatterplot(df, colNameX="a", colNameY="b")
# }

Run the code above in your browser using DataLab