Hi R-User


I was trying to make a raster map with WGS84 projection 
in R, but I could not make it. I found one data set in Google that data 
is almost the same format as of mine. I wanted to make a raster map of 
temperature with 1 degree spatial resolution for the global scale. 
I
 could make it in the GIS software but I do have many variables (to be 
many raster images) and ultimately I am importing them into R for 
further analysis. Therefore, I wanted to make them in R, if possible. 

But, I am wondering how I can create a raster map in R.
(I have provided link of data for your references, this is an example of data 
set).

I am really appropriating for your help.

#--------------------------------------------------
I downloaded the following packages 

#create a raster map from scratch
install.packages("raster", dependencies=TRUE)
library(raster)  # raster data
install.packages("rgdal", dependencies=TRUE)
library(rgdal)  # input/output, projections
install.packages("rgeos", dependencies=TRUE)
library(rgeos)  # geometry ops
install.packages("spdep", dependencies=TRUE)
library(spdep)  # spatial dependence
install.packages("pastecs", dependencies=TRUE)
library(pastecs)

pts<-read.table.url("https://www.betydb.org//miscanthusyield.csv";, header=T, 
sep=",")
proj4string(pts)=<- CRS("+proj=longlat +datum=WGS84")
after that, what I am supposed to do for creating a raster map? any suggestions?
#---------------------------------------------------------------------------

Cheers,
Kristi                                    
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to