Learn R Programming

spacejamr (version 0.2.1)

plot.PointSim: Plot simulated points from a PointSim object

Description

Plots the results of points simulated in a PointProcess or HaltonSeq class, whcih obht inherit methods from the PointSim class.

Usage

# S3 method for PointSim
plot(x, y, ..., title = "Simulated Points", color = "red")

Arguments

x

an object of class PointSim or one of its child classes

y

ignored

...

ignored

title

an optional title. Default is "Simulated Points".

color

an optional color for the simulated points. Default is red.

Value

A plot of classes 'gg' and 'ggplot'

Details

The returned plot can be refined with standard ggplot2 functions

Examples

Run this code
# NOT RUN {
# Load spacejamr object
data("RI")

ri_points <- PointSim(points = 10, window = RI, seed = 42)
plot(ri_points)

# }

Run the code above in your browser using DataLab