plot.pfKruskal: Plot a "pfKruskal" object.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/pfKruskal.R

Description

Plot a "pfKruskal" object using boxplots and showing significant differences between the periods using letters.

Usage

1
2
## S3 method for class 'pfKruskal'
plot(x, trend = FALSE, outliers = FALSE, xlim = NULL, ylim = NULL, ...)

Arguments

x

An object returned by pfKruskal.

trend

Logical, show trend using linear regression?

outliers

Logical, show outliers?

xlim

Numeric, x axis limits.

ylim

Numeric, y axis limits.

...

...

Details

If two periods share the same letter their rank (median) is not significantly different at the confidence level specified by alpha. If not, equality could be rejected at the confidence level specified by alpha.

Value

Return a ggplot2 "gg" object.

Author(s)

O. Blarquez

See Also

pfKruskal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
## Composite charcoal record for Western Boreal North America:
ID=pfSiteSel(continent=="North America", long<(-100) & l12==1)
plot(ID)
## Transform data
res3=pfTransform(ID,method=c("MinMax","Box-Cox","Z-Score"),BasePeriod=c(200,4000))

## Composite
comp=pfComposite(res3,bins=seq(from=-500,to=12500,by=1000))
plot(comp)

## Kruskal Wallis Anova
comparison=pfKruskal(comp)

plot(comparison)

# p=plot(comparison)
# require(ggplot2)
# p+ggtitle("my title")

## End(Not run)

oblarquez/paleofire documentation built on Dec. 29, 2021, 11 a.m.