yes it handles completely on one side. your sample included that case. Sent from my iPhone
On Jun 1, 2012, at 2:15, Roberto Brunelli <roby.brune...@gmail.com> wrote: > Thanks to both of you, > > close to the solution, but I think that your proposals do not address > the case when a bar is completely positive (or negative): I do not > think that the histogram can not be extended easily to this case ... I > had a look at the likert function but it is not clear to me if it is > able to manage this case ... > > On Thu, May 31, 2012 at 3:44 PM, Richard M. Heiberger <r...@temple.edu> wrote: >> Please look at the likert function in the HH package. >> ?likert >> has many examples. >> Here is the code for your query >> >> ## install.packages("HH") ## if necessary >> library(HH) >> twobar <- data.frame(neg=c(8,0,9,2), pos=c(12,9,0,4)) >> likert(twobar) >> >> Rich >> >> On Thu, May 31, 2012 at 9:30 AM, Sarah Goslee <sarah.gos...@gmail.com> >> wrote: >>> >>> Hi Roberto, >>> >>> The R Graph Gallery is an excellent resource for this kind of >>> question. You can browse the thumbnails until you find something that >>> leads you in the right direction, like maybe: >>> >>> http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=136 >>> >>> Sarah >>> >>> On Thu, May 31, 2012 at 7:18 AM, Roberto Brunelli >>> <roby.brune...@gmail.com> wrote: >>>> I would like to create a 'bar' plot with the following look >>>> >>>> - 0 + >>>> -------------------------+---------------------- >>>> oooooooo************ >>>> ********* >>>> ooooooooo >>>> oo**** >>>> >>>> where the positive and negative parts of the bar >>>> should have a different color. >>>> >>>> Is there any function/package supporting this kind of plot? >>>> >>>> Thanks a lot, >>>> >>>> Roberto >>>> >>> >>> -- >>> Sarah Goslee >>> http://www.functionaldiversity.org >>> >>> ______________________________________________ >>> R-help@r-project.org mailing list >>> 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. >> >> ______________________________________________ R-help@r-project.org mailing list 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.