Learn R Programming

SEERaBomb (version 2015.2)

plot2D: Plot 2D cancer incidence splines

Description

Plots splines of incidence versus age and calendar year produced by mk2D.

Usage

plot2D(seerSet, write=TRUE,outDir="~/Results/plots",col="red")

Arguments

seerSet
seerSet object after it is processed by mk2D.
write
TRUE if you want to write images to a seerSet subfolder. The name of this subfolder is the basefilename (bfn) of the seerSet.
outDir
Parent folder of seerSet subfolders.
col
Color of surface plot.

Value

  • None, results go to the screen and to png files.

Details

A plot will be produced for each cancer fitted by mk2D. For the first of these, RGL will open a new X11 window. Adjustments of size and angle of this first plot will hold for all subsequent plots. After each plot, the user hits any key to write the plot to a file and advance through the list of cancers.

See Also

SEERaBomb-package, mk2D,seerSet

Examples

Run this code
library(SEERaBomb)
n=simSeerSet()
n=mk2D(n) 
plot2D(n)

Run the code above in your browser using DataLab