Description Usage Arguments Value See Also Examples
View source: R/DatasetComparison.R
Plot Quantile-Quantile chart with Shapiro-Wilk test values and P-values are provided for each dataset. If some of the frequency values (points) are outside the corresponding normal distribution indicated by a shaded area it means that the dataset does not have a normal distribution. All the datasets are plotted into side-by-side in two columns
1 2 |
df |
Data frame with Feature_name column and feature frequency per dataset |
condition |
Datasets' class (default: |
ds_palette |
Dataset colors (default: |
skip_column |
Number of columns skipped (default: 1 [feature name column]) |
ds_names |
Name of the datasets (default: |
label_x |
X axis label (default: |
none
http://www.sthda.com/english/rpkgs/ggpubr/reference/ggqqplot.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(dsfeatfreqcomp)
# Colors for datasets
dataset.colors <- ggsci::pal_simpsons()(9)
# Swap colors to comply DSA, DS0, DS1, ... order
dataset.colors[c(2,3)] <- dataset.colors[c(3,2)]
dataset.colors[c(1,2)] <- dataset.colors[c(2,1)]
data(dsfeatfreqnegative)
# There is no negative sample for DS5 arrange colors
plotQQ(dsfeatfreqnegative, 'Negative', ds_palette=dataset.colors[c(1:5, 7)])
data(dsfeatfreqpositive)
# For single dataset plot only (y label is normally 'Sample'
# x label is 'Theoretical' in single ggqqplot)
plotQQ(as.data.frame(dsfeatfreqpositive[,2:2]), skip_column= 0, ds_names = 'DS2',
label_x='Theoretical')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.