scatterplot: Plot a generic scatter plot

Description Usage Arguments Value Examples

View source: R/sbpiper_plots.r

Description

Plot a generic scatter plot

Usage

1
2
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

1
2
df <- data.frame(a=rnorm(10000), b=rnorm(10000))
scatterplot(df, colNameX="a", colNameY="b")

sbpiper documentation built on May 2, 2019, 8:53 a.m.