plot2dPP: Plot a spatial point pattern

Description Usage Arguments Author(s) See Also Examples

View source: R/normmix_plots.R

Description

Standard 2d plot for a spatial point pattern.

For examples see

http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#plot2dPP

Usage

1
2
plot2dPP(pp, mus, add2plot = FALSE, title1 = "Spatial point pattern",
  open_new_window = FALSE)

Arguments

pp

A point pattern of class sppmix or ppp.

mus

An optional list of the theoretical means of the mixture components.

add2plot

Logical variable to indicate if the function should add the points to an existing plot.

title1

Title for the plot.

open_new_window

Open a new window for the plot.

Author(s)

Sakis Micheas

See Also

normmix, to_int_surf, owin, rsppmix

Examples

1
2
3
4
5
mix1 <- rnormmix(5, sig0 = .01, df = 5, xlim=c(0, 5), ylim=c(0, 5))
intsurf1=to_int_surf(mix1, lambda = 40, win =spatstat::owin( c(0, 5),c(0, 5)))
pp1 <- rsppmix(intsurf1)
plot2dPP(pp1)
plot2dPP(pp1, mus = intsurf1$mus)

sppmix documentation built on Jan. 13, 2021, 10:04 p.m.