Learn R Programming

sbpiper (version 1.9.0)

scatterplot_log10: Plot a generic scatter plot in log10 scale

Description

Plot a generic scatter plot in log10 scale

Usage

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

Arguments

df

a data frame to trasform to log10 scale

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=exp(rnorm(10000)), b=exp(rnorm(10000)))
scatterplot_log10(df, colNameX="a", colNameY="b")
# }

Run the code above in your browser using DataLab