For plotting an S3 object of type 'corRes'
# S3 method for class 'corRes'
plot(
x,
omicsData = NULL,
order_by = NULL,
colorbar_lim = c(NA, NA),
x_text = TRUE,
y_text = TRUE,
interactive = FALSE,
x_lab = NULL,
y_lab = NULL,
x_lab_size = 11,
y_lab_size = 11,
x_lab_angle = 90,
title_lab = NULL,
title_lab_size = 14,
legend_lab = NULL,
legend_position = "right",
color_low = NULL,
color_high = NULL,
bw_theme = TRUE,
use_VizSampNames = FALSE,
...
)
An object of class "corRes" created via cor_result
an object of the class 'pepData', 'isobaricpepData',
'proData', 'lipidData', 'metabData', 'nmrData' or 'seqData' created via
as.pepData
, as.isobaricpepData
,
as.proData
, as.lipidData
,
as.metabData
, as.nmrData
, or
as.seqData
, respectively.
A character string specifying a column in f_data by which to order the samples.
A pair of numeric values specifying the minimum and maximum values to use in the heat map color bar. Defaults to 'c(NA, NA)', in which case ggplot2 automatically sets the minimum and maximum values based on the correlation values in the data.
logical value. Indicates whether the x-axis will be labeled with the sample names. The default is TRUE.
logical value. Indicates whether the y-axis will be labeled with the sample names. The default is TRUE.
logical value. If TRUE produces an interactive plot.
character string specifying the x-axis label
character string specifying the y-axis label
integer value indicating the font size for the x-axis. The default is 11.
integer value indicating the font size for the y-axis. The default is 11.
integer value indicating the angle of x-axis labels. The default is 90.
character string specifying the plot title
integer value indicating the font size of the plot title. The default is 14.
character string specifying the legend title.
character string specifying the position of the legend. Can be one of "right", "left", "top", "bottom", or "none". The default is "none".
character string specifying the color of the gradient for low values
character string specifying the color of the gradient for high values
logical value. If TRUE uses the ggplot2 black and white theme.
logical value. Indicates whether to use custom sample names. The default is FALSE.
further arguments passed to or from other methods.
ggplot2 plot object if interactive is FALSE, or plotly plot object if interactive is TRUE
library(pmartRdata)
mymetab <- edata_transform(omicsData = metab_object, data_scale = "log2")
mymetab <- group_designation(omicsData = mymetab, main_effects = "Phenotype")
my_correlation <- cor_result(omicsData = mymetab)
plot(my_correlation, omicsData = mymetab, order_by = "Phenotype")
# \donttest{
myseq_correlation <- cor_result(omicsData = rnaseq_object)
plot(myseq_correlation)
# }