| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | plot histogram of a distribution |
| From: | "Krishnamachari, Raghuraman" <Raghu.Krishnamachari@leggmasonasia.com.sg> |
| Date: | Wed, 23 Aug 2006 19:52:47 -0700 |
| Thread-index: | AcbHKGFoRAAQXrfpREqUomq3+LBW6Q== |
| Thread-topic: | plot histogram of a distribution |
|
Dear
all,
I am new to this
list and splus. I am trying to plot a histogram of a distribution using
"histogram".
The issue is i am
unable to call this in a loop with different Factors
variables.
>
factor.names
[1] "Tobin.Q" "EBITDA" "FCF" >
factor.cols
[1] "Tobin.Q" "EBITDA" "FCF" =================================
for(i in 1:length(factor.cols)) {
f.name<-factor.names[i] histogram(~ f.name |
Country, data="" =
10,type="count")
} ==================================== when i replace
f.name with the numeric column names like FCF,EBITDA individually, the above function works. But how to pass these values in a
loop.
histogram(~ FCF | Country,
data="" = 10,type="count")
-- works
whereas
histogram(~ "FCF" |
Country, data="" =
10,type="count")
-- gives different
results.
Hope someone throw light on
this.
thanks,
Raghu.
********************************************************************** E-mail sent through the Internet is not secure. Legg Mason Asset Management (Asia) Pte Ltd [Co. Reg. No. 200007692R] therefore recommends that you do not utilize electronic mail to send to us any confidential or sensitive information, including account numbers and personal identification numbers. Delivery, and/or timely delivery of Internet electronic mail is not guaranteed. Legg Mason Asset Management (Asia) Pte Ltd therefore recommends that you do not send time-sensitive or action-oriented messages to us via electronic mail. ********************************************************************** |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Live On line Fall Semester course on Spatial Statistics using S R and Winbugs, Ernst Linder |
|---|---|
| Next by Date: | Re: calculating upper and lower CL using lme and glme, Spencer Graves |
| Previous by Thread: | Live On line Fall Semester course on Spatial Statistics using S R and Winbugs, Ernst Linder |
| Next by Thread: | Re: plot histogram of a distribution, David L Lorenz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |