drawBFpizza: Make a pizza plot

Description Usage Arguments Examples

View source: R/PlotPizza.R

Description

Make a pizza plot

Usage

1
2
3
4
5
6
7
drawBFpizza(
  dat,
  linewidth = 1,
  scaleText = 0.3,
  show.legend = FALSE,
  labels = NULL
)

Arguments

dat

data.frame with $y, or vector.

linewidth

Scalar, linewidth of the black lines around the pizza.

scaleText

Scalar > 0, the size of the text is equal to scaleText * getGraphOption("fontsize").

show.legend

Logical, should a legend be shown?

labels

String vector of length 2, text to be shown above and below plot.

Examples

1
2
3
4
5
6
jaspGraphs::drawBFpizza(c(1, 4))

jaspGraphs::drawBFpizza(
  dat = data.frame(y = c(1, 4)),
 labels = c("data | H0", "data | H1")
)

vandenman/JASPgraphs documentation built on Dec. 16, 2021, 5:37 p.m.