Glenn,
The best place to learn the graphics libraries is from the Programmers
Guide and the help files of individual graph functions.
Clearly there is a wealth of other resources you can refer to, but an
excellent summary is provided by the 'Graphics' chapter (Ch.3, of 3rd
Ed.) of the MASS book.
As for your barplot, you can clearly parameterise any GUI graphs from
the command line using the guiPlot function. Now, if you want to deploy
traditional graphic functions then look at the help file for 'barplot'.
Here is a very simple example:
amat<-matrix(c(20,10,40,60),nrow=2)
barplot(amat, ylim=c(0, 60), col=c(2,6), beside=T)
Hope this helps.
Dimitrios Chalvatzis
Risk Analyst
Energy Wholesale/Risk Policies & Methods
T +44 (0)24 7642 5429
F +44 (0)24 7642 5479
Dimitrios.Chalvatzis@eon-uk.com
-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of
Glenn.Treacy@ILIM.COM
Sent: Tuesday, August 16, 2005 4:17 PM
To: s-news@lists.biostat.wustl.edu
Subject: [S] Query: barplot
Hi,
I have been trying to contruct a particular type of barplot without
success.
I want to construct two sets of barplots on the same graph. Both have a
common x-axis, and for each value of x I want to graph two bars one for
each
series. This is certainly possible from the gui but I would prefer to
generate it using the command line and traditional graphics. Can anyone
help? While I am on the subject can anybody suggest a good resource for
mastering the graphics capabilities of S+? I have been using S+ for
several
years now but I do struggle when it comes to generating graphics.
I am using S+6.2 on NT4.
Thanks in advance,
Glenn
************************************************************************
**********
Irish Life Investment Managers Limited is authorised by the Financial
Regulator under Section 10 of the Investment Intermediaries Act, 1995.
While Irish Life Investment Managers uses reasonable efforts to ensure
that the information contained in this email is current, accurate and
complete at the date of publication, no representations or warranties
are made (express or implied) as to the reliability, accuracy or
completeness of such information. Irish Life Investment Managers
therefore cannot be held liable for any loss arising directly or
indirectly from the use of, or any action taken in reliance on, any
information contained in this email.
This material is for information only and does not constitute an offer
or recommendation to buy or sell any investment, or subscribe to any
investment management or advisory service. It is intended for the use of
institutional and other professional investors. Past performance is not
indicative of future results. The value of funds we manage may fall as
well as rise.
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
system manager. This footnote also confirms that this email message has
been swept for the presence of computer viruses.
************************************************************************
**********
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu. To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message: unsubscribe s-news
___________________________ Disclaimer Notice ____________________
This message and any attachments are confidential and should only
be read by those to whom they are addressed. If you are not the
intended recipient, please contact us, delete the message from your
computer and destroy any copies. Any distribution or copying without
our prior permission is prohibited.
Internet communications are not always secure and therefore the
E.ON Group does not accept legal responsibility for this message.
The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely
those of the author and do not necessarily
represent those of the E.ON Group.
E.ON UK plc, Westwood Way, Westwood Business Park,
Coventry, CV4 8LG.
Registered in England & Wales No. 2366970
E.ON UK Trading Ltd, Westwood Way, Westwood Business Park,
Coventry, CV4 8LG
Registered in England & Wales No. 4178314
E.ON UK Trading Ltd is regulated by the Financial Services
Authority to carry out investment activities.
Telephone +44 (0) 2476 42 4000
Fax +44 (0) 2476 42 5432
|