Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] how can I plot bar plots with all the bars (negative and
positive) in the same direction????

Zoppoli, Gabriele (NIH/NCI) [G]

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Dear r-help mailing list,

this seems stupid, but I actually don't find the solution:

if I have a vector of numbers x of length n, ranging, say, from -3 to 4, if I do

barplot (x)

all the values below 0 go downwards, and all the positive values go upward. How can I make them all begin from the minimum pointing upwards?

Thanks!


Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest Researcher, LMP, NCI, NIH, Bethesda MD

Work: 301-451-8575
Mobile: 301-204-5642
Email: zoppolig@(protected)
______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.