sobir (version 0.1.2)

bpts_plot: Boundary Points Plot

Description

bpts_plot creates a ggplot2 scatterplot of your bpts object with the boundary lines and no-data zones identified.

Usage

bpts_plot(
  bpts,
  xlab = "x",
  ylab = "y",
  export_name = "bpts plot.png",
  save_plot = FALSE,
  colour = TRUE,
  legend.position = "right"
)

Arguments

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".

Value

a ggplot2 scatterplot

Examples

Run this code
# 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