[R] How can we add a legend to a set of graphs?
Hi, I have a set of 4 graphs and I need to add a legend that is shared by those 4 graphs. This is what I tried: >locator(1) # I placed the cursor in the center of the 4 graphs $x [1] 9.299001 $y [1] 226.3201 >legend(9.3,226.3,"and the rest of the legend arguments")# but the legend didn't show. The legend only appears when I place in inside any of the for plots. How can I place it outside these plots, in the center. Your help will be very much appreciated. Sincerely, Judith Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. __ R-help@stat.math.ethz.ch 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.
[R] Legend outside plotting area
Hi, I have been trying many of the suggested options to place a legend outside plotting area, including something like this: par(xpd=T, oma=par()$oma+c(4.5,0,1.5,0),mar=par()$mar+c(1,0,1,0) But the aspect of the four plots gets compromised when I change the margin settings. I cannot use mtext because I need to use colors for the text. I tried layout, but wouldn't let me include the legend, only plots. I would appreciate very much some more help. Regards, J Pinpoint customers who are looking for what you sell. __ R-help@stat.math.ethz.ch 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.
[R] Manipulating the sizes of multiple screens
Hi, I used split.screen command to creaye 5 screens, 4 screens contain a plot each, the fifth screen is designated to a legend. I am having difficulties setting the dimensions of the screens in a way that would allow me to have the screen dedicated to the legend smaller. I end up with a very awkward aspect at the end: 4 small plots with a big space for the legend. The gend needs to be at the top of the 4 graphs, it's common legend for the 4 graphs. I have tried manipulating the margins of each individual screen, but couldn't obtain the desired aspect. Thank you very much in advance for you help. Best Regards, J You snooze, you lose. Get messages ASAP with AutoCheck __ R-help@stat.math.ethz.ch 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.
[R] In which package is the errbar command located?
__ R-help@stat.math.ethz.ch 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.
[R] Removing vertical line in Tinn R editor
Hi, I haven't been able to figure out how to remove a vertical line that appears when I open an r file. How can I do this? Thank you, Judith Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. __ R-help@stat.math.ethz.ch 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.
[R] ylim settings
Hi, I need to know what is the plus/minus adjustment (proportion) that ylim applies if I have something like this: ylim=range(c(x,z)) meaning what's the x-(proportion) and the z+ (proportion)? Thank you, Judith Luggage? GPS? Comic books? __ R-help@stat.math.ethz.ch 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.
[R] Removing Inf and Inf values from a fata frame
Hi, I have a csv file with empty values, when I apply the different functions (mean, std, etc.) I create a new data frame, the empty values generate Inf and -Inf values. How can I remove those Inf and -Inf values from the new data frame? I already specified na.rm in the mean and std functions, but the values are still there. Thank you, Judith __ R-help@stat.math.ethz.ch 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.
[R] How can I obtain smooth lines in graphs?
Hi, I need to plot lines in a graph, but when I run the corresponding commands I obtain pixel-like lines, they need to be smooth, is there a way to do this? Thank you, Judith __ R-help@stat.math.ethz.ch 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.
Re: [R] How can I obtain smooth lines in graphs?
Thank you Marc, I am using R (version 2.5.0), Windows 2000, and Power Point as the final output and yes, you are right regarding the quality of a PDF file, it's much better than the ones I have tried so far (JPEG, PNG). How can I increase the DPIs? Thank you, Judith --- Marc Schwartz <[EMAIL PROTECTED]> wrote: > On Wed, 2007-06-20 at 17:05 -0700, Judith Flores > wrote: > > Hi, > > > >I need to plot lines in a graph, but when I run > the > > corresponding commands I obtain pixel-like lines, > they > > need to be smooth, is there a way to do this? > > > > Thank you, > > > > Judith > > Judith, > > You will need to provide more information (version > of R, OS, output > device, etc.) and some sample code. > > If you are generating a bitmapped image file such as > PNG or JPEG, as > opposed to a vector based image such as PDF, EPS or > WMF/EMF then there > is not much you can do with respect to the > pixelation of curved/angled > lines or curves/angles in text. You can increase > the dpi (dots per > inch) to enhance the relative resolution (at the > expense of a larger > file), but the image quality is still dependent on > the device upon which > the image is viewed. > > Pending further information, if you need high > quality output, depending > upon the intended use, then you want to use vector > based images. > > HTH, > > Marc Schwartz > > > __ R-help@stat.math.ethz.ch 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.
[R] Adding exponents (superscript format) to a plot
Hi, I need to add exponents to a label in one of the axes of a plot, how can I do this? Thank you, Judith Food fight? Enjoy some healthy debate __ R-help@stat.math.ethz.ch 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.
[R] Asteriscs in a plot to represent approximate size of p-values
Hi, I need to place double and triple asterics (or stars) to highlight very low p-values. I am using points, for example: points(ssdx,ssdy,pch=8,cex=.9) but this allows me to place only one asterisc, how can I place 2 or 3 asteriscs? Thank you, Judith Food fight? Enjoy some healthy debate __ R-help@stat.math.ethz.ch 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.
[R] Substitution of Variables
Hi, I need to run a script under the variable (that comes from a csv file) that is assigned to another variable. This is very a simplified version of what I want to do: data<-read.csv('name.csv') names(data)<-("VA","VB","VC") v<-VA mn(v) Thank you in advance, Judith Got a little couch potato? Check out fun summer activities for kids. __ R-help@stat.math.ethz.ch 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.