layer_barchart: layer of frequency histogram

View source: R/layer_barchart.R

layer_barchartR Documentation

layer of frequency histogram

Description

layer of frequency histogram

Usage

layer_barchart(
  x = 0.05,
  y = 0.15,
  width = 0.25,
  height = 0.4,
  yticks = seq(0, 0.3, 0.1),
  box.width = 0.8,
  digit = 2,
  title = TRUE,
  xlabels = TRUE,
  ...
)

lay_hisFreq(
  x = 0.05,
  y = 0.15,
  width = 0.25,
  height = 0.4,
  yticks = seq(0, 0.3, 0.1),
  box.width = 0.8,
  digit = 2,
  title = TRUE,
  xlabels = TRUE,
  ...
)

panel.histFreq(
  z,
  subscripts,
  at,
  col.regions,
  x = 0.05,
  y = 0.15,
  width = 0.25,
  height = 0.4,
  yticks = NULL,
  box.width = 0.8,
  digit = 2,
  unit = "npc",
  title = TRUE,
  xlabels = TRUE,
  border = "transparent",
  yscale = NULL,
  ntick = NULL,
  w = NULL,
  ...
)

Arguments

x, y, z

Variables defining the plot.

yticks

yaxis ticks position, in the range of ⁠[0, 100]⁠

box.width

Thickness of bars in absolute units; overrides box.ratio. Useful for specifying thickness when the categorical variable is not a factor, as use of box.ratio alone cannot achieve a thickness greater than 1.

digit

the digit in the labels

...

other parameters to panel.latFreq()

subscripts

Integer vector indicating what subset of x, y and z to draw.

at

Numeric vector giving breakpoints along the range of z. See levelplot for details.

col.regions

A vector of colors, or a function to produce a vecor of colors, to be used if region=TRUE. Each interval defined by at is assigned a color, so the number of colors actually used is one less than the length of at. See level.colors for details on how the color assignment is done.

border

Border color for rectangles used when region=TRUE.

yscale

frequency range, ⁠[0, 100]⁠

ntick

Integer, number of ticks

w

weights for percentage, with the same length as z[subscripts]

Examples

## Not run: 
panel.barchartFreq(z, subscripts, bbox = c(0.05, 0.5, 0, 0.5), unit = "npc")

## End(Not run)

kongdd/latticeGrob documentation built on March 30, 2024, 3:35 a.m.