similar to: scales argument in lattice plots

Displaying 20 results from an estimated 10000 matches similar to: "scales argument in lattice plots"

2005 Jan 20
2
font size in console
I'm using R in a statistics class, and when I project the console, the font is smaller than ideal. I've checked the faq's, the manual, and the help system as best I can, and I don't see how to change the font size. Can it be changed from within a session, or will I have to ask the folks who installed the program on the server I use in classes to set it (assuming that can be
2005 Jan 23
5
How to use "identify"
I can't get identify to work, using R 2.0.1 under windows xp pro, service pack 2. Here's what I enter, and the result: > plot((our.frame2$c1),(our.frame2$c9)) # Produces desired plot > identify(our.frame2$c1) # Plot comes to forefront, so I select a point warning: no point with 0.25 inches numeric(0) Is my call to identify correct? The help page for indentify (from
2003 Aug 26
1
rfImpute (for randomForest) crashed
In trying to execute this line in R (Version 1.7.1 (2003-06-16), under windows XP pro), with the randomForest library (about two weeks old) loaded, the program crashed: bost4rf <- rfImpute(TargetDensity~.,data=bost4rf0) Specifically, an XP dialog box popped up, saying ?R for windows GUI front-end has encountered a problem and needs to close.? That was the dialog saying asking whether I
2003 Aug 05
1
na.action in randomForest --- Summary
A few days ago I asked whether there were options other than na.action=na.fail for the R port of Breiman?s randomForest; the function?s help page did not say anything about other options. I have since discovered that a pdf document called ?The randomForest Package? and made available by Andy Liaw (who made the tool available in R---thank you) does discuss an option. It is an implementation of
2003 Feb 24
2
trellis.datasets help
I've looked every way I can think of for help on trellis.datasets, but nothing comes up for me. Please help me find information on what is included, and how to get at those data. Thanks. Dave Parkhurst
2003 Mar 14
6
length() misbehaving?
I'm having a weird problem with length(), in R1.6.1 under windows2000. I have a dataframe called byyr, with ten columns, the first of which is named cnd95. summary(byyr) shows that byyr$cnd95 contains the factor level "tr" 66 times. Also, when I enter byyr$cnd95 at the command line, I can count 66 "tr" elements in the resulting vector. However, when I enter n95trt <-
2004 Mar 11
1
tics and grids
Hi, Whats the easiest way to set a desired interval for tics on axes in R ? And will the 'grid' command put gridlines on all tics automatically ? I tend to get stuck with graphs with ranges 0-1 with only 2 tics and 2 gridlines in the 0-1 range, while I would like 10 tics (or every 0.1) tnx, Piet please reply to pvremortNOSPAM at vub.ac.be
2011 Jan 17
2
Difficult with round() function
Dear list, I'm writing a function to re-grid a data set from finer to coarser resolutions in R as follows (I use this function with sapply/apply): gridResize <- function(startVec = stop("What's your input vector"), to = stop("Missing 'to': How long do you want the fnial vector to be?")){ from <- length(startVec) shortVec<-numeric() tics <- from*to
2005 Jan 26
2
graphsheet substitute in R?
I'm using R 2.0.1 in a class I teach, with most students working under windows XP. We have a data frame with the first column containing the factor "site," and five water-quality variables at each site. As one part of exploring these data, I'd like the students to run by(ourdata,site,pairs). When I try that, however, the pairs plots for the first 10 sites scroll past, and
2003 Aug 15
3
How to reinstall rpart?
After entering ?library(rpart)?, I tried to plot an existing rpart tree, and got this error message: Error: couldn't find function "plot.rpart". However, ??plot.rpart? does bring up the help for the function. The same things occur for text.rpart, although print(my.tree) does work. So, I tried to re-install rpart using Packages | Install from CRAN, but then I get this
2004 Aug 23
2
Reading GAL file
Greetings: I am trying to work with spdep (everything is "brand new" downloaded this morning). OS = Windows 2000 (also up to date). The code I am using follows: #example gal.county=read.geoda("lnpilnd.GAL", row.names=NULL, skip=0) summary.nb(gal.county) Error in summary.nb(gal.county) : Not a neighbours list #end The gal file works just fine in GeoDa (also up to date).
2007 Jun 20
1
making a Time of Day axis
I am wrestling with time and date data. I came up with a way to plot and label a histogram with "time of day" on the x-axis, but it seemed like a lot more work than should be necessary. Is there a better way to do what I am trying to do? require(chron) # read input data data = read.table("input.dat", header=T) # Create date-time and chron objects datetime =
2004 Oct 17
4
Descriptive statistics table
Greetings: I would like to make a table with descriptive statistics for a data.frame. I guess the question is how can I put together, in a table, the results from, say: apply(df, 2, mean, na.rm =T) apply(df, 2, median, na.rm =T) ....... Thanks, Mihai Nica Jackson State University 155 B Parkhurst Dr. Jackson, MS 39202 601 969 5423 601 914 0361 [[alternative HTML version deleted]]
2003 Mar 14
1
Fw: length() misbehaving?: More
With the problem below, I've discoved that n95trt<-length(byyr$cnd95[byyr$cnd95=="tr"&!is.na(byyr$cnd95)]) does give me the correct count for the number of "tr" entries. (The same behavior occurs for the "c" level of the cnd95 factor.) It appears that byyr$cnd95=="tr" is finding both "tr" AND NA entries. Is this a bug, or is it to be
2003 Aug 04
2
na.action in randomForest
The help page for randomForest shows na.action=na.fail as a parameter, and does not describe other possibilities for na.action. I have a regression problem, with about 1000 rows in my data frame, and with an NA in occasional predictor variables, in about 5% of rows. I would like to have all rows included in the analysis, to the extent possible. (That seems to be possible in rpart, for example.)
2004 Feb 29
1
graphics device problems
I'm using R 1.8.0 under windows XP. I can't get certain of the graphics devices set up. For example, when I copy this line directly from the "postscript" help screen, I get the error messages that follow it: > postscript("foo.ps") Error in PS(file, old$paper, old$family, old$encoding, old$bg, old$fg, : unable to start device PostScript In addition:
2005 Jan 26
1
Converting yr mo da to dates
I'm using R 2.0.1 in windows XP (and am not currently subscribed to this mailing list). I have a USGS dataset, a text file with fixed width fields, that includes dates as 6-digit integers in the form yrmoda. I could either read them that way, or with yr, mo, and da as separate integers. In either case, I'd like to convert them to a form will allow plotting other "y"
2005 Jun 14
2
lattice, panel.grid, and scales=list(tick.number=XXX)
I have a Lattice plot in which I want to adjust the number of tick marks used, and I want to have the drawn grid reflect that change. Here is what I'm doing: bwplot(var1 ~ var2, data=df, scales=list(tick.number=10), panel=function(...) { panel.grid(h=0,v=-1,...); panel.stripplot(col="gray40", pch="|", cex=2, ...); panel.bwplot(...); })
2009 Aug 12
2
Plotting Hints - how to add minor tics on axes
Using the standard plotting routine in R, i.e. no special packages, is there a way to add in minor tics to the axes? Also, is there a way to make sure the major axes labels are at the origin? When I'm looking at a plot, the major axes labels are present, but it looks like they start a bit away from the origin on the plot. Thanks again for any info and feedback.
2007 Dec 03
1
Plotting monthly timeseries with an x-axis in "time format"
I have the following timeseries "tab" ===================================== > str(tab) mts [1:23, 1:2] 79.5 89.1 84.9 75.7 72.8 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr [1:2] "Ipex...I" "Omel...E" - attr(*, "tsp")= num [1:3] 2006 2008 12 - attr(*, "class")= chr [1:2] "mts" "ts" > tab