mapforGeneratedData function

Map generated data

Map generated data

Function to draw the map of a vector when data are generated.

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 liveranis@gmail.com

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. tools:::Rd_expr_doi("10.18637/jss.v064.i07") .

Examples

## Not run: inputs=generateSampleDataFile(clusSummaryPoissonNormalSpatial()) mapforGeneratedData(inputs$uCAR) ## End(Not run)