Description Usage Arguments Value Examples
Rescales variance
1 | rescale_scalegram(scalegram_coarse, scalegram_fine, scale_ratio, stat)
|
scalegram_coarse |
A vector, time series or a matrix. |
scalegram_fine |
the statistic used. |
scale_ratio |
the ratio between coarser and finer scale. |
stat |
the statistic used. |
A list with the scalegram of x
for statistic MODE
and the corresponding plot [ggplot object].
1 2 3 4 5 6 7 8 9 10 | site_a = owda[owda$Lat == 46.25 & owda$Lon == 16.5,]$scPDSI
site_b = owda[owda$Lat == 46.25 & owda$Lon == 16.5 & owda$Time %in% seq(992, 2012, 2) ,]$scPDSI
sg_a = scalegram(site_a)
sg_b = scalegram(site_b)
sg_a$scalegram_plot +
geom_line(data=sg_b$scalegram_df, col = "red") +
geom_point(data=sg_b$scalegram_df, col = "red")
\item{"mean" for mean,}
\item{"cv" for coefficient of variance,}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.