anomalize: Anomalize Datasets

Description Usage Arguments Value Examples

View source: R/anomalize.R

Description

Redefine data points as how far away they are from the average for that point in space, a useful tool for better visualization and analysis

Usage

1
anomalize(starsObj, attr, space1, space2 = NULL, time, baseline = NULL, ...)

Arguments

starsObj

a stars object

attr

attribute of stars object

space1

spatial dimension (e.g., station, Longitude)

space2

second spatial dimension, if applicable (e.g., Latitude)

time

time dimension

baseline

optional parameter that chooses which time period to calculate anomalies for (e.g., 1951-1980)

...

other dimensions not involved in anomalization, but still part of the original stars object

Value

a stars object with anomalized attribute

Examples

1
2
anomalize(GISTEMP,1,1,2,3)
anomalize(GISTEMP,1,"Long","Lat","Time", baseline = 1951:1980)

JamesMCollier/densityviz documentation built on Dec. 18, 2021, 12:31 a.m.