Description Usage Arguments Value Author(s) References See Also Examples
View source: R/feedback.spatial.R
Mapping of a spatial index with circles whose sizes and colors vary with the values of the index
1 2 | map.statistic(coordinates, statistic, region, cex.circles = c(3, 0.2), legend,
main = NULL, add = FALSE)
|
coordinates |
a 2-column matrix with latitudes and longitudes of observation sites. |
statistic |
a numeric vector specifying the values, at observation sites, of the index to be mapped. |
region |
a list of arguments defining the region over which the index is mapped:
|
cex.circles |
a numeric vector specifying the circle expansion. |
legend |
a list of arguments defining the location of the legend in the plot:
|
main |
a character string providing an overall title for the plot. |
add |
a logical indicating whteher the plot must be added to a current plot (if |
a plot.
Samuel Soubeyrand Samuel.Soubeyrand@avignon.inra.fr, Cindy E. Morris, E. Keith Bigg.
Soubeyrand, S., Morris, C. E. and Bigg, E. K. (2014). Analysis of fragmented time directionality in time series to elucidate feedbacks in climate data. Environmental Modelling and Software 61: 78-86.
map.statistic rain.feedback.stats.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #### load data of feedback and change-in-feedback indices in 88 sites across Australia
data(rain.feedback.stats)
#### spatial coordinates of the 88 sites and corresponding feedback index
#### computed from the whole data series
coord=rain.feedback.stats[,3:4]
stat1=rain.feedback.stats[["Feedback.whole.period"]]
#### map of feedback index
map.statistic(coord,stat1,cex.circles=c(3,0.2),
region=list(border="Australia",xlim=c(110,155)),
legend=list(x=c(rep(114,3),rep(123,2)),y=-c(37,39.5,42,37,39.5),
xtext=c(rep(114,3),rep(123,2))+1,ytext=-c(37,39.5,42,37,39.5),digits=2),
main="Feedback")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.