auto_plot {metasnf} | R Documentation |
Automatically plot features across clusters
Description
Given a single row of a solutions matrix and data provided through
data_list
and/or target_list
arguments, this function will
return a series of bar and/or jitter plots based on feature types.
Usage
auto_plot(
solutions_matrix_row = NULL,
data_list = NULL,
cluster_df = NULL,
target_list = NULL,
return_plots = TRUE,
save = NULL,
jitter_width = 6,
jitter_height = 6,
bar_width = 6,
bar_height = 6,
verbose = FALSE
)
Arguments
solutions_matrix_row |
A single row of a solutions matrix. |
data_list |
A data_list containing data to plot. |
cluster_df |
Directly provide a cluster_df rather than a solutions matrix. Useful if plotting data from label propagated results. |
target_list |
A target_list containing data to plot. |
return_plots |
If |
save |
If a string is provided, plots will be saved and this string will be used to prefix plot names. |
jitter_width |
Width of jitter plots if save is specified. |
jitter_height |
Height of jitter plots if save is specified. |
bar_width |
Width of bar plots if save is specified. |
bar_height |
Height of bar plots if save is specified. |
verbose |
If TRUE, print progress to console. |
Value
By default, returns a list of plots (class "gg", "ggplot") with
one plot for every feature in the provided data list and/or target list.
If return_plots
is FALSE, will instead return a single "data.frame"
object containing every provided feature for every observation in long
format.