[R] colored shading lines

2007-04-23 Thread Albrecht Kauffmann
Hi all,

it there any possibility to draw colored shading lines of a polygon plot?
E.g.

plot(polygon_object,col=red,density=10,angle=45)

produces only black shading lines within the polygon.

With many thanks for any hint

Albrecht

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] sp: proj4string has no impact

2007-01-17 Thread Albrecht Kauffmann
Hi all,

I'm faced with a problem applying the sp package: The projection argument in

readShapePoly(Shapefile,proj4string=CRS class argument)

e.g.: CRS(+proj=aea +lat_1=46 +lat_2=73 +lat_0=60 +lon_0=84 +x_0=0
+y_0=0 +ellps=clrk66 +units=m  +no_defs)

doesn't have any impact on the plotted object. I also tested the simple
example:

xy = cbind(x = 2 * runif(100) - 1, y = 2 * runif(100) - 1)
plot(SpatialPoints(xy, proj4string =
CRS(+proj=longlat)),xlim=c(-1,1),ylim=c(-1,1))

looks exactly like

plot(SpatialPoints(xy, proj4string =CRS(+proj=stere +lon_0=98  +over))

or

plot(SpatialPoints(xy))

without any projection.

What I'm doing wrong?

I use the latest versions of sp and rgdal.

With many thanks for any hint,

Albrecht Kauffmann
Potsdam University

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Temporal disaggregation using interpolation splines

2005-11-15 Thread Albrecht Kauffmann
Hi,

this is a newbie question. Would it be able to convert e.g. annual
time series of flow data (or an index series) into quarterly data using
interpolation splines by means of an existing R-function? The problem is,
that the average value of the computed quarterly values must be the annual
value, i.e. the spline should cross the annual values (in a stairs-line
plot) in the middle of every annual step.

With many thanks for every hint
Albrecht Kauffmann

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html