Last data update: 2014.03.03

R: Check labeling profile
chkpR Documentation

Check labeling profile

Description

Plots the labeling profile of a binClst_instance against a control variable (e.g. environmental information) depicted as background coloured bars.

Usage

chkp(obj, ...)

## S4 method for signature 'binClst'
chkp(obj, ctrlLbls = NULL, ctrlClrs = NULL,
  ctrlLgnd = NULL, lims = NULL)

Arguments

obj

A binClst_instance.

...

Parameters ctrLbls, ctrlClrs, ctrlLgnd and lims are optional.

ctrlLbls

A numeric vector with the control labels or a string specifying one of 'height', 'azimuth' or 'both' solar covarites. By default, for a binClstPath_instance it is set to the solar height covariate, regardless it has been used or not for the clustering.

ctrlClrs

A vector of colors to depict the control labelling. At least one colour should be specified for each different control label. By default white/grey colours are used for the default control labels.

ctrlLgnd

A vector of strings identifying the labels for the legend of the plot. They are automatically generated for the solar covariates.

lims

A numeric vector with lower and upper bounds to limit the plot.

Examples

# -- apply EMbC to code{expth} --
mybcp <- stbc(expth)
# -- plot the labeling profile against 'both' solar covariates --
chkp(mybcp,ctrlLbls='both',ctrlClrs=RColorBrewer::brewer.pal(8,'Oranges')[1:4])

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(EMbC)
Loading required package: move
Loading required package: geosphere
Loading required package: sp
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.1-10, (SVN revision 622)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.11.3, released 2015/09/16
 Path to GDAL shared files: /usr/share/gdal/1.11
 Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.2-3 
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/EMbC/chkp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: chkp
> ### Title: Check labeling profile
> ### Aliases: chkp chkp,binClst-method
> 
> ### ** Examples
> 
> # -- apply EMbC to code{expth} --
> mybcp <- stbc(expth)
... computing starting delimiters:
... delimiter  lL :  1.488106 
... delimiter  lH :  1.488106 
... delimiter  hL :  1.488106 
... delimiter  hH :  1.488106 
... delimiter  Ll :  1.982173 
... delimiter  Lh :  1.982173 
... delimiter  Hl :  0.8682456 
... delimiter  Hh :  0.8682456 
[1]   0  -0.0000e+00       4       600
[1]   1  -4.2724e+00       4       437
[1]   2  -4.1181e+00       4        35
[1]   3  -3.6766e+00       4        34
[1]   4  -3.2744e+00       4        24
[1]   5  -3.1224e+00       4        21
[1]   6  -3.0675e+00       4        15
[1]   7  -3.0520e+00       4         7
[1]   8  -3.0456e+00       4         4
[1]   9  -3.0416e+00       4         0
[1]  10  -3.0395e+00       4         0
[1]  11  -3.0384e+00       4         0
[1]  12  -3.0379e+00       4         0
[1]  13  -3.0377e+00       4         0
[1]  14  -3.0376e+00       4         0
[1] ... Stable clustering
> # -- plot the labeling profile against 'both' solar covariates --
> chkp(mybcp,ctrlLbls='both',ctrlClrs=RColorBrewer::brewer.pal(8,'Oranges')[1:4])
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>