I downloaded the iid.test, but I can't run it. I get the following message: Error: could not find function "iid.test" Where am I supposed to save this package in order that it works? Thanks, EZ [[alternative HTML version deleted]]
Gavriel & Esti Zoladz wrote:> I downloaded the iid.test, but I can't run it. I get the following message: > Error: could not find function "iid.test" > Where am I supposed to save this package in order that it works? >?install.packages
You're clearly in over your head. install.packages("iid.test") will install the package. you may replace this with any "packagename" ?functionname in R on any 'functionname' will bring up the Fine Manual which you are to then use to Read the Fine Manual (RTFM) before posting questions to the list. Gavriel & Esti Zoladz wrote:> I cant find this > > On 12/23/09, *Brian G. Peterson* <brian at braverock.com > <mailto:brian at braverock.com>> wrote: > > Gavriel & Esti Zoladz wrote: > > I found there that it is supposed to be in destdir, but I > can't find this folder..... > > On 12/23/09, *Brian G. Peterson* <brian at braverock.com > <mailto:brian at braverock.com> <mailto:brian at braverock.com > <mailto:brian at braverock.com>>> wrote: > > Gavriel & Esti Zoladz wrote: > > I downloaded the iid.test, but I can't run it. I get the > following message: > Error: could not find function "iid.test" > Where am I supposed to save this package in order that > it works? > > > ?install.packages > > > RTFM, and keep replies on the list. > >-- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraverock
Zia Ahmed
2009-Dec-23 19:44 UTC
[R] colorkey: Placement of labels and ticks in center positions of "color key" of a levelplot ?
Is it possible to place labels and ticks in center positions of each cut of "color key" of levelplot ? Here is my code that I used to produce a map (see attachment). The two labels and ticks were placed in left sides each segment of the color key. I want to show them center of the cuts. Help will be appreciated. Thanks Zia # R code data(meuse.grid) coordinates(meuse.grid) = ~x+y names(meuse.grid) windows(width=4, height=5) tiff( file="E:/Paper_Zia/Spatial_Variability/Paper_1/Output/Figures/Fig_1.tif", width=4, height=5,units = "in", pointsize = 12, res=1600, restoreConsole = T,compression = "lzw",bg="transparent") levelplot(ffreq~x+y, aspect="iso", xlab=list("E (m)",cex=.6), ylab="N (m)", scales=list(y=list(draw=T,cex=.7,rot=90, tck= .35),x=list(draw=T, cex=.7,tck= .35)), colorkey = list(space="right",tick.number=1,height=1, width=1.5, labels = list(at = seq(1,2,length=2),cex=.7,rot=90, lab = c("annual", "2-5 years"))), # I want place above labels center of each cuts of colorkey" as.data.frame(meuse.grid), col.regions=gray.colors,cuts=1, panel = function(...) { panel.levelplot(...) panel.grid(h=-1, v=-1, col="darkgrey") #panel.text(2670600, 563000, cex=.7, " (c)") }, ) dev.off()
Zia Ahmed
2009-Dec-23 20:54 UTC
[R] Resent: colorkey: Placement of labels and ticks in center positions of "color key" of a levelplot ?
Is it possible to place labels and ticks in center positions of each cut of "color key" of levelplot ? Here is my code that I used to produce a map (see attachment). The two labels and ticks were placed in left sides each segment of the color key. I want to show them center of the cuts. Help will be appreciated. Thanks Zia windows(width=4, height=5) jpeg( file="/////Fig_1.jpg", units = "px", pointsize = 12, quality = 75, bg = "white", res = NA, restoreConsole = TRUE) levelplot(ffreq~x+y, aspect="iso", xlab=list("E (m)",cex=.6), ylab="N (m)", scales=list(y=list(draw=T,cex=.7,rot=90, tck= .35),x=list(draw=T, cex=.7,tck= .35)), colorkey = list(space="right",tick.number=1,height=1, width=1.5, labels = list(at = seq(1,2,length=2),cex=.7,rot=90, lab = c("annual", "2-5 years"))), # I want place above labels center of each cuts of colorkey" as.data.frame(meuse.grid), col.regions=gray.colors,cuts=1, panel = function(...) { panel.levelplot(...) panel.grid(h=-1, v=-1, col="darkgrey") }, ) dev.off()
Deepayan Sarkar
2009-Dec-24 03:33 UTC
[R] Resent: colorkey: Placement of labels and ticks in center positions of "color key" of a levelplot ?
On Wed, Dec 23, 2009 at 12:54 PM, Zia Ahmed <zua3 at cornell.edu> wrote:> Is it possible to place ?labels ?and ticks ?in center positions of each cut > of ?"color key" of levelplot ? Here is my code that I used to produce a map > (see attachment). The two ?labels and ticks ?were ?placed ?in ?left ?sides > each segment of the color key. I want to show them center of the cuts.Your question is not clear to me, but if you mean to say that you want the labels on top of the colored rectangles in the color key (i.e., overlapping them and not on one side), then no, that is not supported. However, you could write your own legend function to do that, starting from draw.colorkey as a template. -Deepayan> Help will be appreciated. > Thanks > > Zia > > windows(width=4, height=5) > jpeg( file="/////Fig_1.jpg", > units = "px", pointsize = 12, quality = 75, bg = "white", > res = NA, restoreConsole = TRUE) > > levelplot(ffreq~x+y, aspect="iso", > ? ? ? ? ? xlab=list("E (m)",cex=.6), ylab="N (m)", > ? ? ? ? ? scales=list(y=list(draw=T,cex=.7,rot=90, tck= .35),x=list(draw=T, > cex=.7,tck= .35)), > ? ? ? ? ? ?colorkey = list(space="right",tick.number=1,height=1, width=1.5, > ? ? ? ? ? ?labels = list(at = seq(1,2,length=2),cex=.7,rot=90, > ? ? ? ? ? ?lab = c("annual", "2-5 years"))), > # I want place above labels center of each cuts of colorkey" > ? ? ? ? ? ?as.data.frame(meuse.grid), > ? ? ? ? ? ?col.regions=gray.colors,cuts=1, > ? ? ? ? ? ?panel = function(...) { > ? ? ? ? ? ?panel.levelplot(...) > ? ? ? ? ? ?panel.grid(h=-1, v=-1, col="darkgrey") > ? ? ? ? ? ? ? ?}, ) > dev.off() > > ______________________________________________ > 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. > >