bpts_plot creates a ggplot2 scatterplot of your bpts object with the boundary lines and no-data zones identified.
bpts_plot( bpts, xlab = "x", ylab = "y", export_name = "bpts plot.png", save_plot = FALSE, colour = TRUE, legend.position = "right" )
your bpts object created by the extract_bpts() function.
the x-axis label. Defaults to "".
the y-axis label. Defaults to "".
the filename of your plot if you choose to export it. Include .png suffix. Defaults to "bpts plot.png" if save_plot = TRUE.
TRUE or FALSE to save the plot. Defaults to FALSE.
TRUE or FALSE to plot using colour or in black and white. Defaults to TRUE.
Define the position of the ggplot legend, as per ggplot capability. Default to "right".
a ggplot2 scatterplot
# NOT RUN { a = rnorm(100,0,1) b = rnorm(100,0,1) bptsExample = extract_bpts(a,b) bpts_plot(bptsExample, "a", "b") # }
Run the code above in your browser using DataLab