View source: R/plot.fdatest2.R
plot.fdatest2 | R Documentation |
plot
method for class "fdatest2
". Plotting function creating a
graphical output of the testing procedures for the mean comparison of two
groups: functional data and adjusted p-values are plotted.
## S3 method for class 'fdatest2'
plot(
x,
xrange = c(0, 1),
alpha1 = 0.05,
alpha2 = 0.01,
ylab = "Functional Data",
main = NULL,
lwd = 0.5,
col = c(1, 2),
ylim = NULL,
type = "l",
...
)
x |
The object to be plotted. An object of class " |
xrange |
Range of the |
alpha1 |
First level of significance used to select and display
significant effects. Default is |
alpha2 |
Second level of significance used to select and display
significant effects. Default is |
ylab |
Label of |
main |
Plot title. |
lwd |
Line width for the plot of the adjusted p-value function. Default
is |
col |
Colors for the plot of functional data. Default is |
ylim |
Range of the |
type |
line type for the plot of the adjusted p-value function. Default is type='l'. |
... |
Additional plotting arguments that can be used with function
|
No value returned. The function produces a graphical output of the
fdatest results: the plot of the functional data and the one of the
adjusted p-values. The portions of the domain selected as significant by
the test at level alpha1
and alpha2
are highlighted in the
plot of the adjusted p-value function and in the one of functional data by
gray areas (light and dark gray, respectively).
Pini, A., & Vantini, S. (2017). Interval-wise testing for functional data. Journal of Nonparametric Statistics, 29(2), 407-424.
Pini, A., Vantini, S., Colosimo, B. M., & Grasso, M. (2018). Domain‐selective functional analysis of variance for supervised statistical profile monitoring of signal data. Journal of the Royal Statistical Society: Series C (Applied Statistics) 67(1), 55-81.
Abramowicz, K., Hager, C. K., Pini, A., Schelin, L., Sjostedt de Luna, S., & Vantini, S. (2018). Nonparametric inference for functional‐on‐scalar linear models applied to knee kinematic hop data after injury of the anterior cruciate ligament. Scandinavian Journal of Statistics 45(4), 1036-1061.
IWTimage
for the plot of p-values heatmaps (for IWT).
# Importing the NASA temperatures data set
data(NASAtemp)
# Performing the TWT for two populations
TWT.result <- fdatest2(
NASAtemp$paris, NASAtemp$milan,
method = "TWT", B = 10L
)
# Plotting the results of the TWT
plot(
TWT.result,
xrange = c(0, 12),
main = 'TWT results for testing mean differences'
)
# Selecting the significant components at 5% level
which(TWT.result$adjusted_pval < 0.05)
# Performing the IWT for two populations
IWT.result <- fdatest2(
NASAtemp$paris, NASAtemp$milan,
method = "IWT", B = 10L
)
# Plotting the results of the IWT
plot(
IWT.result,
xrange = c(0, 12),
main = 'IWT results for testing mean differences'
)
# Selecting the significant components at 5% level
which(IWT.result$adjusted_pval < 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.