Hello,
I'm using S-PLUS 4.5, Release 2.
I'm comparing dot plots and bar charts for some data. I'd like to be
able to specify a 0 baseline in the call to barchart(), but don't know
how. Using the xlim argument does not work of course, since this only
specifies the approximate x-axis minimum and maximum. I thought about
playing around with setting the usr graphics parameter, but I'm pretty
sure trellis functions ignore that.
Here is an example:
dum.df <- data.frame(Mileage = fuel.frame$Mileage,
Name = row.names(fuel.frame), Type = fuel.frame$Type)
barchart(Name ~ Mileage, data = dum.df, subset = Type == "Van")
Note that if you use the menu version of bar chart, the bar chart
automatically uses a 0 baseline. Also note, however, that there is a
bug in the menu version ("Subset Rows with" box) because the plot shows
labels for all car types, not just Vans.
Thanks for your time!
Sincerely,
--Steve M.
_____________
| *** | Steven P. Millard, Ph.D.
| * |
| * * * | P robability, TEL: 206-528-4877
| * * * | S tatistics & FAX: 206-528-4802
| * | I nformation E-mail: SMillard@ProbStatInfo.com
| * | Web: www.ProbStatInfo.com
| *** | 7723 44th Avenue NE
|___________| Seattle, WA 98115-5117 USA
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|