save_plots {CEMiTool} | R Documentation

## Save CEMiTool object plots

### Description

Save plots into the directory specified by the `directory` argument.

### Usage

    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

    # 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")

[Package CEMiTool version 1.6.11 Index]