Hi All R guru's, A couple of simple questions which I cannot find answers to in "an introduction to R" or in the reference manuals. I am running R on Win95, and have plotted up quite a nice box and whisker plot: char<-read.table("n:/reddinm/grifpr~1/survey/char.txt") attach(char) boxplot(Al,Fe,OC,pH, range=0,xaxis=FALSE, ylab="Proportion of Unirigated Soil Characteristic",xlab="Characteristic") nom2<-c("Al","Fe","OC","pH") axis(1,1:4,nom2) abline(h=1,lty=2) The problems are these, how do I change the line width (lines are all too light). I have attempted putting lwd=2 or something higher inside the boxplot statement.... which it swallows without any complaints...it just doesn't seem to change anything, either on the screen or when printed out. Second problem, I find that the text quality when I export to a PNG file is pretty bad...not good enough for publication. I thought that I might be able to get HErshey fonts to improve this...but can't get them to work. Final question: I cannot get R to swallow the addition of a font.lab(xxx,xxx) statement in the boxplot function......how do I get it to use Sans Serif, and produce high quality output? How do I use the font.lab command and the related commands. Thanks for your help. It looks like a nice package from what I have seen so far, so I'm keen to learn to use it. Matt Redding Soil Scientist Intensive Livestock Environmental Management-Research Department of Primary Industries, Queensland Australia. ph 61 7 46 881372 fax 61 7 46 881192 reddinm at dpi.qld.gov.au http://www.dpi.qld.gov.au/ilems -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 17 Jul 2000, Redding, Matthew wrote:> Hi All R guru's, > > A couple of simple questions which I cannot find answers to in "an > introduction to R" or in the reference manuals.[..., using Win95]> Second problem, I find that the text quality when I export to a PNG > file is pretty bad...not good enough for publication. > I thought that I might be able to get HErshey fonts to improve > this...but can't get them to work.This is a standard problem with bitmapped graphics like PNG. Hershey fonts won't improve it and will probably make it worse, as at least the standard TrueType fonts are designed to be rasterized, unlike vector Hershey fonts. Text quality will be particularly bad unless the PNG plot is printed at a small exact multiple of the design size (in pixels). Don't think in terms of PNG for publication (except Web publication). Use PostScript or (on Windows only) Windows MetaFiles as these are vector/font description formats. You can create or export to Windows metafiles directly, or via the clipboard. [...] -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks for your replies Brian and Uwe, I won't be trying to use PNG's for my purposes then. To change the line widths the make the diagram darker and more conducive to publication, I have to go back to the source code for bxp(.), then? There are no parameters from within R that can change this? Thanks, Matt Redding Soil Scientist Intensive Livestock Environmental Management-Research Department of Primary Industries, Queensland Australia. ph 61 7 46 881372 fax 61 7 46 881192 reddinm at dpi.qld.gov.au http://www.dpi.qld.gov.au/ilems -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I've worked out how to do this, So no need to reply to the previous query. I have used the Par(lwd=2) command, which increases line thickness. ......Now I simply have to find how to change to a sans serif font, and I will be OK. Thanks, Matt Redding Soil Scientist Intensive Livestock Environmental Management-Research Department of Primary Industries, Queensland Australia. ph 61 7 46 881372 fax 61 7 46 881192 reddinm at dpi.qld.gov.au http://www.dpi.qld.gov.au/ilems> -----Original Message----- > From: Redding, Matthew [SMTP:reddinm at dpi.qld.gov.au] > Sent: Tuesday, July 18, 2000 8:06 AM > To: R list > Subject: RE: [R] Fonts and Line widths > > Thanks for your replies Brian and Uwe, > > I won't be trying to use PNG's for my purposes then. > To change the line widths the make the diagram darker and more conducive > to > publication, I have to go back to the source code for bxp(.), then? > There are no parameters from within R that can change this? > > Thanks, > > Matt Redding > Soil Scientist > Intensive Livestock Environmental Management-Research > Department of Primary Industries, Queensland > Australia. ph 61 7 46 881372 > fax 61 7 46 881192 > reddinm at dpi.qld.gov.au > http://www.dpi.qld.gov.au/ilems > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.- > r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._