s-news
[Top] [All Lists]

Re: Bar chart

To: "Bhandari, A (Arjun)" <a.bhandari@abp.nl>
Subject: Re: Bar chart
From: Chuck Cleland <ccleland@optonline.net>
Date: Tue, 19 Oct 2004 05:17:45 -0400
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <CC024BE5804EBE4D827C6E2ACCA95D387642A1@wntsv158.abpnet.nl>
References: <CC024BE5804EBE4D827C6E2ACCA95D387642A1@wntsv158.abpnet.nl>
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
One bar for each row? Do you really want 132 bars per plot? How about something like this:

mymat <- matrix(runif(132*6), ncol=6)
par(las=1, mfrow=c(2,3))
for(i in 1:6){barplot(mymat[,i])}

Bhandari, A (Arjun) wrote:
Hi,

i have a matrix with 6 columns and 132 rows. the values in the matrix are between 0 and 1.

I want to plot six graphs on a sheet, such that each graph is a series of bars for each row.

How can I do this using the script file.

Best Regards,
Arjun Bhandari
Senior Portfolio Manager,
ABP Investments,
Office Phone: +31 20 40 69198
Mobile: +31 6536 10424

--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894

<Prev in Thread] Current Thread [Next in Thread>
  • Bar chart, Bhandari, A (Arjun)
    • Re: Bar chart, Chuck Cleland <=