plot.specfeat: Plot Specfeat

Description Usage Arguments Author(s) See Also Examples

Description

Plot spectra in objects of class Specfeat. Specfeats contain spectral data after applying a transformation such as continuum removal (see function transformSpeclib.

Usage

1
2
3
## S4 method for signature 'Specfeat,ANY'
plot(x, fnumber = 1, stylebysubset = NULL, changecol = TRUE,
        changetype = FALSE, autolegend = TRUE, new = TRUE, ...)

Arguments

x

Object to be plotted

fnumber

Subscript of feature(s) to be plotted

stylebysubset

Name of column in SI table to be used for colour.

changecol

Flag indicating if line colours change according to values in coloumn defined by stylebysubset

changetype

Flag indicating if line types change according to values in coloumn defined by stylebysubset

autolegend

Flag if legend is plotted.

new

Flag if a new plot should be started.

...

Further arguments passed to plot.default

Author(s)

Lukas Lehnert

See Also

nri, glm.nri, glm, cor.test,Nri-method, t.test,Nri-method, Specfeat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
data(spectral_data)

## Transform speclib
bd <- transformSpeclib(spectral_data, method = "sh", out = "bd")

## Define features automatically
features <- define.features(bd)

##Example to isolate the features around 450nm, 700nm, 1200nm and 1500nm.
featureSelection <- specfeat(features, c(450,700,1200,1500))

## Plot features
plot(featureSelection, 1:4)

## Advanced plotting example
plot(featureSelection, 1:4, stylebysubset = "season")

plot(featureSelection, 1:4, stylebysubset = "season", changecol = FALSE, 
     changetype = TRUE)

## End(Not run)

hsdar documentation built on Nov. 17, 2017, 4:35 a.m.