save_plots: Save CEMiTool object plots

Description Usage Arguments Value Examples

Description

Save plots into the directory specified by the directory argument.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
save_plots(cem, ...)

## S4 method for signature 'CEMiTool'
save_plots(
  cem,
  value = c("all", "profile", "gsea", "ora", "interaction", "beta_r2", "mean_k",
    "sample_tree", "mean_var", "hist", "qq"),
  force = FALSE,
  directory = "./Plots"
)

Arguments

cem

Object of class CEMiTool.

...

Optional parameters One of "all", "profile", "gsea", "ora", "interaction", "beta_r2", "mean_k", "sample_tree", "mean_var", "hist", "qq".

value

A character string containing the name of the plot to be saved.

force

If the directory exists, execution will not stop.

directory

Directory into which the files will be saved.

Value

A pdf file or files with the desired plot(s)

Examples

1
2
3
4
5
6
# Get example CEMiTool object
data(cem)
# Plot beta x R squared graph
cem <- plot_beta_r2(cem)
# Save plot
## Not run: save_plots(cem, value="beta_r2", directory="./Plots")

Example output

Warning message:
replacing previous importggplot2::annotatebyggpmisc::annotatewhen loadingCEMiTool

CEMiTool documentation built on March 13, 2021, 2 a.m.