Learn R Programming

openVA (version 1.2.0)

plot.eava: Create CSMF plot for EAVA::codEAVA output

Description

Create CSMF plot for EAVA::codEAVA output

Usage

# S3 method for eava
plot(
  x,
  top = 10,
  title = "Top CSMF Distribution",
  type = "bar",
  return.barplot = FALSE,
  ...
)

Value

A barplot if return.barplot is TRUE; otherwise, nothing is returned.

Arguments

x

Output from EAVA::codEAVA

top

The number of top causes to include in plot. This is exceeded if there are ties.

title

Title for CSMF plot

type

An indicator of the type of chart to plot. "pie" for pie chart; "bar" for bar chart.

return.barplot

a logical indicating if the (barplot) ggplot() object should be returned (instead of printed). Default value is FALSE.

...

Not used.