Skip to contents

Creates a pie chart of the distribution of overall risk-of-bias judgements across the studies.

Usage

plot_risk_pie(
  input_file,
  output_file,
  theme = "traffic_light",
  verbose = FALSE
)

Arguments

input_file

A data frame with NOS data, or a path to a CSV or Excel file (.csv, .xls, .xlsx) containing it.

output_file

Path where the plot will be saved. The file extension must be one of "png", "pdf", "svg", or "tiff".

theme

Colour theme. One of "traffic_light", "gray", "ocean", or "sage".

verbose

If TRUE, relay the messages printed by the Python package to the R console.

Value

Invisibly returns the normalized path to the created file.

See also

nos.tlplotR for the Python requirement and input data details.

Examples

if (FALSE) { # \dontrun{
plot_risk_pie(
  input_file = system.file("extdata", "sample_nos.csv",
                           package = "nos.tlplotR"),
  output_file = tempfile(fileext = ".png")
)
} # }