Dear all, I have a database x,y,value imported in R with read.table: dati<- read.table("dati.dat") value is a categorical data (land use) and i want to plot in the same colour the same land use. It is possible with R. Thanks a lot
At 11:10 16.04.2009, giuseppeform at libero.it wrote:>Dear all, I have a database x,y,value imported in R with read.table: > >dati<- >read.table("dati.dat") > >value is a categorical data (land use) and i want to >plot in the same colour the same land use. It is possible with R. Thanks a lot > >______________________________________________ >R-help at 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.Maybe, something like: set.seed(726) x <- runif(10) y <- runif(10) value <- sample(c('agric', 'urban', 'traffic'), 10, replace=TRUE) plot(x, y, col=as.numeric(as.factor((value))), pch=as.numeric(as.factor((value)))) Heinz
Dear all, excuse me for my simple questions: i had imported with read table a database with x, y,value and i must do variogram with gstat. can someone tell me how to do it? I read the help but I could not to obtain variogram,
Hi I found that variogram is a function in spatial library. I tried> ??variogram > library(spatial) > ?variogramI used an example and I did not have any problem with it.> data(topo, package="MASS") > topo.kr <- surf.ls(2, topo) > variogram(topo.kr, 25) >I do not have gstat available but from documentation seems that there shall not be any problem and that there is even example how to use it.> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.Regards Petr r-help-bounces at r-project.org napsal dne 19.04.2009 17:44:39:> Dear all, excuse me for my simple questions: i had imported with readtable a> database with x, y,value and i must do variogram with gstat. > can someone tell me how to do it? I read the help but I could not > to obtain variogram, > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.