Re: [R-sig-Geo] adding text to levelplot panels with rasterVis and level(panel.text(...))

2015-06-15 Thread Andy Bunn
Indeed. Many thanks.

On 6/15/15, 2:06 PM, Oscar Perpiñán Lamigueiro
oscar.perpi...@gmail.com wrote:

Hi,

I think this is what you are looking for:

levelplot(s) +
layer(panel.text(179500, 333000,
 text2add[panel.number()]))

Best,

Oscar.

Oscar Perpiñán Lamigueiro
Dpto. Ing. Eléctrica, Electrónica, Automática y Física Aplicada
(ETSIDI-UPM) Grupo de Sistemas Fotovoltaicos (IES-UPM)
URL: http://oscarperpinan.github.io

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


[R-sig-Geo] adding text to levelplot panels with rasterVis and level(panel.text(...))

2015-06-15 Thread Andy Bunn
Hi all, I want to add a different label to each panel of a levelplot using
panel.text. Is there a way to do this by updating the plot rather than
writing a panel function in the main call?

E.g., something like the code below rather than levelplot(s, panel =
function(x, y, ..., subscripts){} etc.)

Many thanks, Andy


require(rasterVis)
text2add - c(plot 1, plot 2, plot 3)
f - system.file(external/test.grd, package=raster)
r - raster(f)
s - stack(r, r+500, r-500)
levelplot(s) +
  layer(panel.text(179500, 333000, text2add))


[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] adding text to levelplot panels with rasterVis and level(panel.text(...))

2015-06-15 Thread Oscar Perpiñán Lamigueiro
Hi,

I think this is what you are looking for:

levelplot(s) +
layer(panel.text(179500, 333000,
 text2add[panel.number()]))

Best,

Oscar.

Oscar Perpiñán Lamigueiro
Dpto. Ing. Eléctrica, Electrónica, Automática y Física Aplicada
(ETSIDI-UPM) Grupo de Sistemas Fotovoltaicos (IES-UPM)
URL: http://oscarperpinan.github.io

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


[R-sig-Geo] How to make time interval from available temporal data.

2015-06-15 Thread Iztirab Hussain via R-sig-Geo
Hi I am new here, so may be my problem is quite typical.
I have 16 years daily precipitation data and want to convert it into 15 days 
and 3 months interval.Anyone would like to share me the source code and 
appropriate package name?
Regards
Iztirab
[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] How to make time interval from available temporal data.

2015-06-15 Thread Edzer Pebesma
I would recommend looking into packages zoo, and maybe xts, and their
aggregate methods:

library(zoo)
example(aggregate.zoo)

has an example aggregating daily data to quarterly data.

On 06/15/2015 10:34 AM, Iztirab Hussain via R-sig-Geo wrote:
 Hi I am new here, so may be my problem is quite typical.
 I have 16 years daily precipitation data and want to convert it into 15 days 
 and 3 months interval.Anyone would like to share me the source code and 
 appropriate package name?
 Regards
 Iztirab
   [[alternative HTML version deleted]]
 
 ___
 R-sig-Geo mailing list
 R-sig-Geo@r-project.org
 https://stat.ethz.ch/mailman/listinfo/r-sig-geo
 

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi),  University of Münster,
Heisenbergstraße 2, 48149 Münster, Germany; +49 251 83 33081
Journal of Statistical Software:   http://www.jstatsoft.org/
Computers  Geosciences:   http://elsevier.com/locate/cageo/
Spatial Statistics Society http://www.spatialstatistics.info



signature.asc
Description: OpenPGP digital signature
___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo