Re: [R] Gantt chart like graphics

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed, 28 May 2008 19:29:41 -0400

Try gantt.chart in the plotrix package.

On Wed, May 28, 2008 at 1:54 PM, kljosc <kljosc_at_liwest.at> wrote:
>
> Dear R Community,
>
> I have a dataframe like this
>
> dat product1 product2 ... productn
> 01.1.2008 1 1 1
> 02.1.2008 1 1 2
> .
> 15.2.2008 2 2 NA
> .
> 04.4.2008 2 2 1
> 05.4.2008 NA 2 NA
>
> (date ascending order, 1:n products with status 1, 2 or NA)
>
> and want to produce a graphic like this, where 1 or 2 are colored
> rectangles, NAs are white:
>
> product1 11..........2............2_
> product2 11..........2............22
> .
> .
> productn 12.........._............1_
> time_axis (=dat) ->
>
> which looks like a Gantt chart with multiple time slots. I have tried it
> with image() which looks good, but I don't know how to produce an y-axis
> with labels product1, etc. and a x-axis with date labels.
> Further, I want to draw a scatterplot below (using layout()) with the same
> x-axis.
> Maybe someone has a better idea which is easier to label?
>
> Regards
> Klemens
> --
> View this message in context: http://www.nabble.com/Gantt-chart-like-graphics-tp17518407p17518407.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_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_at_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. Received on Thu 29 May 2008 - 02:03:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 29 May 2008 - 02:30:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive