Graphs using R

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Graphs using R

Nethal Jajo
Dear,

I have a table with four columns similar to the following:

Factory Name      Production type        Months            Freq

Factory 1           Car type 1                   Jan.                    0

Factory 1           Car type 2                   Feb.                  1

Factory 2            Car type 3                  May                     3



I need help in producing graphs;

1. I need to graph the production of the factories per month in "Stacked columns"

2. I need to graph the each of the production type by factory and month.



Regards

N.Jajo

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: Graphs using R

FJ M




To start:
pdf("Auto_Analysis.pdf)
from the R console type:
? hist

For the histogram help page.
If you show the R code for your data, I'll generate the actual code for the histogram. Thanks.

> From: [hidden email]
> To: [hidden email]
> Date: Mon, 8 Oct 2012 08:26:59 +0000
> Subject: [R] Graphs using R
>
> Dear,
>
> I have a table with four columns similar to the following:
>
> Factory Name      Production type        Months            Freq
>
> Factory 1           Car type 1                   Jan.                    0
>
> Factory 1           Car type 2                   Feb.                  1
>
> Factory 2            Car type 3                  May                     3
>
>
>
> I need help in producing graphs;
>
> 1. I need to graph the production of the factories per month in "Stacked columns"
>
> 2. I need to graph the each of the production type by factory and month.
>
>
>
> Regards
>
> N.Jajo
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.

     
        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: Graphs using R

PIKAL Petr
In reply to this post by Nethal Jajo
Hi

homework? No homewok policy here.

You can check e.g. ggplot2 package

Regards
Petr

> -----Original Message-----
> From: [hidden email] [mailto:r-help-bounces@r-
> project.org] On Behalf Of Nethal Jajo
> Sent: Monday, October 08, 2012 10:27 AM
> To: [hidden email]
> Subject: [R] Graphs using R
>
> Dear,
>
> I have a table with four columns similar to the following:
>
> Factory Name      Production type        Months            Freq
>
> Factory 1           Car type 1                   Jan.
> 0
>
> Factory 1           Car type 2                   Feb.
> 1
>
> Factory 2            Car type 3                  May
> 3
>
>
>
> I need help in producing graphs;
>
> 1. I need to graph the production of the factories per month in
> "Stacked columns"
>
> 2. I need to graph the each of the production type by factory and
> month.
>
>
>
> Regards
>
> N.Jajo
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.