csMap: This function map a variable from a slot from a csPi object

Description Usage Arguments Value Author(s) Examples

Description

This function map a variable from a slot from a csPi object

Usage

1
csMap(obj, slot, var, type = "tile", fct = "sum")

Arguments

obj:

a csPi object

slot:

the slot name

var:

the variable name

type:

the map type - tile or bubble. For categorical variable, only bubble is available.

fct:

agregation function -sum, mean or n_distinct- to summarise the spatial information

Value

a ggplot plot

Author(s)

Laurent Dubroca

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(fishPifct)
data(sole)
sole<- csDataTocsPi(sole.cs)
csMap(sole,"hh","foDur","tile","sum")
  	
## End(Not run) 

  

ldbk/fishPifct documentation built on May 20, 2019, 11:28 p.m.