how to make separate scatter graphs for separate groups with same format in R?
1
0
Entering edit mode
10.4 years ago

Hi to all R programmers I have data like this

Group     position     S.D
1         1            1        
1         2            2
1         3            3
2         1            4
2         2            5
2         3            6
3         1            7
3         2            8
3         3            9
4         1            10
4         2            11
4         3            12
5         1            13
5         2            14
5         3            15
6         1            16
6         2            17
6         3            18
7         1            19
7         2            20
7         3            21
8         1            22
8         2            23
8         3            24
9         1            25
9         2            26
9         3            27
10        1            28
10        2            29
10        3            30
11        1            31
11        2            32
11        3            33
12        1            34
12        2            35
12        3            36

Now I want to make 12 different scatter X(S.D):Y(Position)graphs per group with same format for all the graphs at the same time. I am doing this excel but it is taking lot of time, I came to knew that it will be very easy to do this with R. Can any one help me in making these graphs? Any help would be highly appreciated

Thanks in Advance,
Genetist

R • 3.0k views
ADD COMMENT
0
Entering edit mode

How is this related to bioinformatics? This looks like a pure R question (updating the post to provide biological context should suffice).

ADD REPLY
0
Entering edit mode

Do you want a scatterplot per group?

If you never used R befor, this would be a good task for you to learn data management and plotting in R.

There are plenty of tutorials, which exactly cover this topic. Therefore, you maybe want to try it first by yourself :)

ADD REPLY
0
Entering edit mode
10.4 years ago

You might try using ggplot2 to produce something like in this tutorial which colors points by group. You could also use faceting in ggplot2 to produce multiple independent plots.

ADD COMMENT

Login before adding your answer.

Traffic: 1598 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6