Description Usage Arguments Value Author(s) See Also Examples
Method to plot objects of class "IWTomicsData". The function create graphical
representations of the feature measurments in each region datasets, such as aligned curves,
pointwise quantile curves, scatterplot and smoothed scatterplot.
1 2 3 4 5 6 7 8 | ## S4 method for signature 'IWTomicsData'
plot(x, type='boxplot',method='pearson',
N_regions=pmin(lengthRegions(x),
ifelse(type=='curves',10,ifelse(type=='pairs',1000,+Inf))),
probs=c(0.25,0.5,0.75), average=TRUE, size=TRUE,
id_regions_subset=idRegions(x), id_features_subset=idFeatures(x),
log_scale=FALSE, log_shift=0, col=1+seq_along(id_regions_subset),
plot=TRUE, ask=TRUE, xlab='Windows', ylim=NULL,...)
|
x |
|
type |
type of plot to be drawn. Possible types are:
|
method |
correlation coefficient to be computed and plotted if type="pairs"
or type="pairsSmooth". Possible types are "pearson" (default), "kendall" and "spearman".
See |
N_regions |
number of regions to be randomly chosen (for each region dataset) in
|
probs |
probabilities corresponding to the quantiles to be drawn in |
average |
if |
size |
if |
id_regions_subset |
vector with the identifiers of the region datasets to be plotted. |
id_features_subset |
vector with the identifiers of the features to be plotted. |
log_scale |
plot the logarithm of the measurements. |
log_shift |
scalar with the shift to be applied before applying the logorithm, when
|
col |
vector of plotting colors for the different region datasets. If type is
|
plot |
it |
ask |
if |
xlab |
a title for the x axis. |
ylim |
the y limits of the plot. |
... |
additional plot parameters. |
plot returns a list with components depending on the plot type.
If type is "pairs" or "pairsSmooth" the list has components:
features_plot |
matrix with the data plotted, one column for each feature considered. |
features_cor |
correlation matrix. |
type |
type of plot drawn. |
If type is "boxplot" or "curves" the list has components:
x_plot |
a list of vectors with the abscissa for each feature. |
features_plot |
if type is |
features_average |
if |
features_position_size |
if |
type |
type of plot drawn. |
col |
vector of plotting colors for the different region datasets. |
col_plot |
if type is |
Marzia A Cremona, Alessia Pini, Francesca Chiaromonte, Simone Vantini
IWTomicsData for "IWTomicsData" class, constructors, accessors
and methods;
smooth method to smooth curves in "IWTomicsData" objects;
IWTomicsTest for the Interval-Wise Testing.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(regionsFeatures_center)
## Plot the pointwise boxplot of the curves in the different region datasets
plot(regionsFeatures_center,type='boxplot')
## Plot all the curves in the different region datasets
plot(regionsFeatures_center,type='curves',N_regions=lengthRegions(regionsFeatures_center))
## Scatterplot of the measurements in the different region datasets
plot(regionsFeatures_center,type='pairs',N_regions=lengthRegions(regionsFeatures_center))
## Smooth scatterplot of the measurements in the 'control' region datasets
plot(regionsFeatures_center,type='pairsSmooth',id_regions_subset='control',
N_regions=lengthRegions(regionsFeatures_center)['control'],col=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.