[R] Space between bars in barplot
Richard.Cotton at hsl.gov.uk
Richard.Cotton at hsl.gov.uk
Fri Oct 10 17:55:36 CEST 2008
> I played around with your suggestions to change the appearance of my
graph,
> but there is still a problem I could not fix.
> The vector, which I want to plot, contains 60 entries. After 3 bars I
want
> to have a large gap
> between the next 3 bars. But what always happens is, that R took at the
> beginning just 2 bars
> and then always 3 bars ending up with one bar at the end.
> So I have created a new vector v <- c(0,0,vectorToPrint) plotting this
> vector with the following
> command: barplot(v, space=rep(c(0,0,2)) ). It works but getting always
some
> warning messages.
> Instead of 0,0 I tried as well NA, NA but same result. So is there a way
to
> achieve that without
> warning messages?
Seeing as it's late on a friday afternoon, could you give us a fighting
chance of helping you by
1) providing enough code to reproduce the problem, and
2) telling us what the warning said.
(As per the posting guide.)
Regards,
Richie.
Mathematical Sciences Unit
HSL
------------------------------------------------------------------------
ATTENTION:
This message contains privileged and confidential inform...{{dropped:20}}
More information about the R-help
mailing list