Learn R Programming

plotKML (version 0.8-3)

HRprec08: Daily precipitation for Croatia for year 2008

Description

The daily measurements of precipitation (rain gauges) for year 2008 kindly contributed by the Croatian National Meteorological Service. HRprec08 contains 175,059 measurements of precipitation sums (489 stations by 365 days).

Usage

data(HRprec08)

Arguments

Format

The HRprec08 data frames contain the following columns:

NAME

name of the meteorological station

Lon

a numeric vector; x-coordiante / longitude in the WGS84 system

Lat

a numeric vector; y-coordinate / latitude in the WGS84 system

DATE

'Date' class vector

PREC

daily cummulative precipitation in mm (precipitation from the day before)

References

See Also

HRtemp08

Examples

Run this code
# NOT RUN {
data(HRprec08)
library(sp)
# }
# NOT RUN {
# subset:
prec.2008.05.01 <- HRprec08[HRprec08$DATE=="2008-05-01",]
coordinates(prec.2008.05.01) <- ~Lon+Lat
proj4string(prec.2008.05.01) <- CRS("+proj=lonlat +datum=WGS84")
# write to KML:
shape = "http://plotkml.r-forge.r-project.org/circle.png"
data(SAGA_pal)
kml(prec.2008.05.01, size = PREC, shape = shape, colour = PREC, 
    colour_scale = SAGA_pal[[9]], labels = PREC)
# }

Run the code above in your browser using DataLab