plot_mpp {ldmppr} | R Documentation |
Plot a marked point process
Description
Plot a marked point process
Usage
plot_mpp(mpp_data, pattern_type)
Arguments
mpp_data |
ppp object with marks or data frame with columns (x, y, size). |
pattern_type |
type of pattern to plot ("reference" or "simulated"). |
Value
a ggplot object of the marked point process.
Examples
# Load example data
data(small_example_data)
mpp_data <- generate_mpp(
locations = small_example_data %>% dplyr::select(x, y),
marks = small_example_data$size,
xy_bounds = c(0, 25, 0, 25)
)
# Plot the marked point process
plot_mpp(mpp_data, pattern_type = "reference")
[Package ldmppr version 1.0.4 Index]