[R-sig-Geo] plotKML - html.table description block

2016-06-17 Thread twah

Hi

I would like to use the plotKML package to create a KML file for google earth. 
Specifically, I intend to display several attributes of
a spatial points dataframe. How do I define the argument "html.table" as in the function 
"kml_layer.SpatialPoints" in  order to display
a description block whenever I click a specific spatial point icon on the map. 
I have no clue how to do this. I assume I may have
to write some html code. Can someone help?

Thanks

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


[R-sig-Geo] spTransform / SpatialPixelsDataFrame

2016-04-21 Thread twah

Hello

I would like to reproject a SpatialPixelsDataFrame, changing the CRS. I 
am trying to use the command "spTransform" from the package "sp". 
Unfortunately, the command results in a SpatialPointsDataFrame, which is 
not desired. My SpatialPixelsDataFrame has proj4string


+init=epsg:21781 +proj=somerc +lat_0=46.952406
+lon_0=7.4395833 +k_0=1 +x_0=60 +y_0=20 +ellps=bessel 
+towgs84=674.4,15.1,405.3,0,0,0,0

+units=m +no_defs

The command which results in a SpatialPointsDataFrame is:

SPDF2<-spTransform(SPDF1,CRS("+proj=longlat +datum=WGS84 +ellps=WGS84 
+towgs84=0,0,0"))


An object transformation through

SPDF3<-as(SPDF2,"SpatialPixelsDataFrame")

results in an error, possibly since in the underlying problem the SPDF2 
is a subset for a particular layer, so it is not a full grid.


Can someone help?

Thanks.

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


[R-sig-Geo] errorsarlm from spdep package / error message

2016-04-11 Thread twah

Hi all

I am trying to debug my R project. As I invoke the "errorsarlm" function 
from the "spdep" package, I am getting the following error:


Error in as.vector(residuals(lm.target)) :
  '.SigArgs' is shorter than '.SigLength' says it should be

I have no clue why this error message arises. An internet search did not 
give an answer, either. Do some of you know? I am not sure whether or 
not I have to provide a minimal reproducible code in this mailing list?


Thanks

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