scatterplot_ple: Plot a profile likelihood estimation (PLE) scatter plot

Description Usage Arguments Value Examples

View source: R/sbpiper_plots.r

Description

Plot a profile likelihood estimation (PLE) scatter plot

Usage

1
2
3
scatterplot_ple(df, g = ggplot(), colNameX = "x", colNameY = "y",
  conf_level_66 = 0, conf_level_95 = 0, conf_level_99 = 0,
  dot_size = 0.1)

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

conf_level_66

the 66% confidence level to plot

conf_level_95

the 95% confidence level to plot

conf_level_99

the 99% confidence level to plot

dot_size

the size of the dots in the scatterplot

Value

the plot

Examples

1
2
3
4
5
6
a <- rnorm(10000)
b <- a^2+10
df<-data.frame(a, b)
scatterplot_ple(df, colNameX="a", colNameY="b", conf_level_66=0)
scatterplot_ple(df, colNameX="a", colNameY="b", 
                conf_level_66=13, conf_level_95=16.5, conf_level_99=20)

pdp10/sbpiper documentation built on May 17, 2019, 11:17 p.m.