Learn R Programming

cartogramR (version 1.2-0)

plot.gridanalysis.cartogramR: Plot a gridanalysis.cartogram object

Description

Plot a gridanalysis.cartogram object

Usage

# S3 method for gridanalysis.cartogramR
plot(
  x,
  nthsmallest = 5,
  redrawxaxis = TRUE,
  type = "b",
  xlab = NULL,
  ylab = NULL,
  ylim = c(0, 20),
  ...
)

Value

No return value, called for side effects

Arguments

x

a gridanalysis.cartogram object

nthsmallest

plot only the nthsmallest values among all polygons

redrawxaxis

if TRUE redraw ticks and labels of x axe at grid size on log scale

type

character string (length 1 vector) or vector of 1-character strings indicating the type of plot for each polygons, see graphics::matplot for all possible types.

xlab

titles for x axe, as in graphics::matplot.

ylab

titles for y axe, as in graphics::matplot.

ylim

ranges of y axe, as in graphics::matplot.

\dots

arguments passed to or from other methods.

Examples

Run this code
# \donttest{
  data(usa)
  precarto <- precartogramR(usa, method="gsm", pf=1.2, verbose=TRUE)
  plot(precarto)
# }

Run the code above in your browser using DataLab