feature_plot | R Documentation |
This function visualizes protein intensity differences among conditions (classes) using box plots or density distribution plots.
feature_plot(
model_df,
type = "box",
text_size = 10,
palette = "viridis",
n_row,
n_col,
save = FALSE,
file_path = NULL,
file_name = "Feature_plot",
file_type = "pdf",
dpi = 80,
plot_width = 7,
plot_height = 7
)
model_df |
A |
type |
Type of plot to generate. Choices are "box" or "density." Default
is |
text_size |
Text size for plot labels, axis labels etc. Default is
|
palette |
Viridis color palette option for plots. Default is
|
n_row |
Number of rows to print the plots. |
n_col |
Number of columns to print the plots. |
save |
Logical. If |
file_path |
A string containing the directory path to save the file. |
file_name |
File name to save the plot.
Default is |
file_type |
File type to save the plot.
Default is |
dpi |
Plot resolution. Default is |
plot_width |
Width of the plot. Default is |
plot_height |
Height of the plot. Default is |
This function visualizes condition-wise differences in protein intensity using boxplots and/or density plots.
A ggplot2
object
Chathurani Ranathunge
pre_process
, rem_feature
## Create a model_df object with default settings.
covid_model_df <- pre_process(covid_fit_df, covid_norm_df)
## Feature variation - box plots
feature_plot(covid_model_df, type = "box", n_row = 4, n_col = 2)
## Density plots
feature_plot(covid_model_df, type = "density")
## Change color palette
feature_plot(covid_model_df, type = "density", n_row = 4, n_col = 2, palette = "rocket")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.