Question: how to make separate scatter graphs for separate groups with same format in R?
0
gravatar for blacktomato27
6.3 years ago by
United States
blacktomato2760 wrote:

Hi to all R programmers i have data like this

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

Thanks in Advance,

Genetist

R • 2.3k views
ADD COMMENTlink modified 6.3 years ago by Sean Davis26k • written 6.3 years ago by blacktomato2760

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

ADD REPLYlink written 6.3 years ago by Devon Ryan97k

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 REPLYlink modified 6.3 years ago • written 6.3 years ago by linus330
0
gravatar for Sean Davis
6.3 years ago by
Sean Davis26k
National Institutes of Health, Bethesda, MD
Sean Davis26k wrote:

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 COMMENTlink written 6.3 years ago by Sean Davis26k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1460 users visited in the last hour