add_title: Add a title to an existing ggplot2 plot

Description Usage Arguments Author(s) See Also Examples

Description

The function adds extra titles to a ggplot2 plot.

For examples see

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

Usage

1
2
3
add_title(title, lambda = "", m = "", n = "", t = "", L = "",
  nmarks = "", mu = "", theta = "", nu = "", gamma = "", sigma = "",
  df = "")

Arguments

title

The title to use for the plot.

lambda, m, n, t, L, nmarks, mu, theta, nu, gamma, sigma, df

Optional info to display on the second row of the title: average number of points, number of components in the mixture, number of points in the point pattern, time frame, number of iterations, total number of marks, a mean value, parameters for a Matern covariance model, a parameter gamma, and degrees of freedom, respectively.

Author(s)

Sakis Micheas, Yuchen Wang

See Also

rnormmix, dnormmix, MaternCov

Examples

1
2
3
4
truemix = rnormmix(m = 5, sig0 = .1, df = 5,xlim= c(0, 3), ylim = c(0, 3))
intsurf=to_int_surf(truemix,lambda = 100,win=spatstat::owin( c(0, 5),c(0, 5)))
#plot the intensity surface
plotmix_2d(intsurf)+add_title("A pretty projection of the 3d surface to 2 dimensions")

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