Description Usage Arguments Value Examples
bpts_plot creates a ggplot2 scatterplot of your bpts object with the boundary lines and no-data zones identified.
1 2 3 4 5 6 7 8 9 |
bpts |
your bpts object created by the extract_bpts() function. |
xlab |
the x-axis label. Defaults to "". |
ylab |
the y-axis label. Defaults to "". |
export_name |
the filename of your plot if you choose to export it. Include .png suffix. Defaults to "bpts plot.png" if save_plot = TRUE. |
save_plot |
TRUE or FALSE to save the plot. Defaults to FALSE. |
colour |
TRUE or FALSE to plot using colour or in black and white. Defaults to TRUE. |
legend.position |
Define the position of the ggplot legend, as per ggplot capability. Default to "right". |
a ggplot2 scatterplot
1 2 3 4 | a = rnorm(100,0,1)
b = rnorm(100,0,1)
bptsExample = extract_bpts(a,b)
bpts_plot(bptsExample, "a", "b")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.