plot-prevR-missing-method: Plot object of class prevR.

Description Usage Arguments Details See Also Examples

Description

Method plot for object of class prevR. Plot clusters, number of observations per cluster or number of positive cases per cluster.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'prevR,missing'
plot(
  x,
  type = "position",
  add.legend = TRUE,
  legend.location = "bottomright",
  factor.size = 0.2,
  new.window = FALSE,
  axes = F,
  ...
)

Arguments

x

object of class prevR.

type

graph to plot:

  • "position" clusters position.

  • "c.type" clusters per c.type.

  • "count" number of observations per cluster.

  • "flower" number of positive cases per cluster.

add.legend

add a legend?

legend.location

legend location.

factor.size

scale factor of rings (for type="count").

new.window

plot in a new window?

axes

show axes?

...

additional arguments transmitted to graphics::title().

Details

Available values for legend.location are: "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" use "center".

Use main to define a title and sub for a subtitle (see graphics::title()).

See Also

graphics::title(), graphics::legend().

Examples

1
2
3
4
plot(fdhs, type = "position", main="position", axes=TRUE)
plot(fdhs, type = "c.type", main="c.type")
plot(fdhs, type = "count", main="count", factor.size = 0.1)
plot(fdhs, type = "flower", main="flower")

prevR documentation built on Aug. 28, 2020, 5:08 p.m.