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
3
## 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
## 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")

oblarquez/paleofire documentation built on Sept. 25, 2018, 4:24 a.m.