On Friday, June 1, 2012, Roberto Brunelli 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 ...


Why not? Just make sure the opposing half is zero. In any case, I offered
you a strategy for solving your own problem, rather than a complete
solution.

Sarah


>  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<javascript:;>>
> 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<javascript:;>
> >
> > 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 <javascript:;>> 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 <javascript:;> 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.
> >
> >
>


-- 
Sarah Goslee
http://www.stringpage.com
http://www.sarahgoslee.com
http://www.functionaldiversity.org

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to