Description Usage Arguments Value Examples
View source: R/sbpiper_plots.r
Plot a profile likelihood estimation (PLE) scatter plot
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)
|
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 |
the plot
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.