Creates a scatter plot for an S3 object of type 'nmrnormRes'
# S3 method for class 'nmrnormRes'
plot(
x,
nmrData = NULL,
order_by = NULL,
color_by = NULL,
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 = "none",
point_size = 2,
bw_theme = TRUE,
palette = NULL,
...
)
an object of type nmrnormRes, created by
normalize_nmr
An nmrData object.
A character string specifying a column in f_data by which to order the samples.
A character string specifying a column in f_data by which to color the points.
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.
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".
integer specifying the size of the points. The default is 2.
logical value. If TRUE uses the ggplot2 black and white theme.
character string indicating the name of the RColorBrewer
palette to use. For a list of available options see the details section in
RColorBrewer
.
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)
mynmr <- edata_transform(omicsData = nmr_identified_object, data_scale = "log2")
mynmrnorm <- normalize_nmr(
omicsData = mynmr,
apply_norm = FALSE,
metabolite_name = "unkm1.53"
)
plot(mynmrnorm)
mynmrnorm2 <- normalize_nmr(
omicsData = mynmr,
apply_norm = FALSE,
sample_property_cname = "Concentration"
)
plot(mynmrnorm2)