scalegram_rescale: Rescales variance

Description Usage Arguments Value Examples

Description

Rescales variance

Usage

1
rescale_scalegram(scalegram_coarse, scalegram_fine, scale_ratio, stat)

Arguments

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.

Value

A list with the scalegram of x for statistic MODE and the corresponding plot [ggplot object].

Examples

 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,}

imarkonis/scalegram documentation built on May 27, 2019, 7:44 a.m.