Learn R Programming

PReMiuM (version 3.0.29)

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.
main
A string for title.

Authors

Aurore J. Lavigne, Department of Epidemiology and Biostatistics, Imperial College London and MRC Biostatistics Unit, Cambridge, UK

Maintainer: Silvia Liverani

References

Liverani, S., Hastie, D. I., Azizi, L., Papathomas, M. and Richardson, S. (2014) PReMiuM: An R package for Profile Regression Mixture Models using Dirichlet Processes. Forthcoming in the Journal of Statistical Software. Available at http://uk.arxiv.org/abs/1303.2836

Examples

Run this code
inputs=generateSampleDataFile(clusSummaryPoissonNormalSpatial())
mapforGeneratedData(inputs$uCAR)

Run the code above in your browser using DataLab