mapforGeneratedData: Map generated data
Description
Function to draw the map of a vector when data are generated. Usage
mapforGeneratedData(u, del=NULL, palette='RGB', main='' )
Arguments
u
A vector of size nSubject to map. The function is only useful when data are generated by generateSampleDataFile.
del
A numeric vector of increasing order given the breaks to color the map. By default the centiles of u are used.
palette
Color palette to be used. Either 'RGB' (default) Red-Green-Blue, or 'BW' for black and white.
Authors
Aurore J. Lavigne, Department of Epidemiology and Biostatistics, Imperial College London and MRC Biostatistics Unit, Cambridge, UK Maintainer: Silvia Liverani References
Silvia Liverani, David I. Hastie, Lamiae Azizi, Michail Papathomas, Sylvia Richardson (2015). PReMiuM: An R Package for Profile Regression Mixture Models Using Dirichlet Processes. Journal of Statistical Software, 64(7), 1-30. URL http://www.jstatsoft.org/v64/i07/.
Examples
Run this codeinputs=generateSampleDataFile(clusSummaryPoissonNormalSpatial())
mapforGeneratedData(inputs$uCAR)
Run the code above in your browser using DataLab