[R] Question:How to get rid of missing values

2010-02-24 Thread Lu Wang
Hi, I want to draw a pie chart of level (variable) for each ID (variable). I have a big dataset, here I attach part of it. ID level 1 G1 1 A1 1 A1 1 G1 1 G1 1 G1 1 A1 1 A1 1 G1 1 G1 1 G3 1 A1 1 G1 1 A1 1 A1 1 A2 1 A2 1 M 1 A1 1 G1 1 A1 1 1 1 A2 1 G3 1 A1 1 A1 1 A

[R] Question:How to get rid of missing values

2010-02-24 Thread Lu Wang
Hi, I want to draw a pie chart of level (variable) for each ID (variable). I have a big dataset, here I attach part of it. ID level 1 G1 1 A1 1 A1 1 G1 1 G1 1 G1 1 A1 1 A1 1 G1 1 G1 1 G3 1 A1 1 G1 1 A1 1 A1 1 A2 1 A2 1 M 1 A1 1 G1 1 A1 1 1 1 A2 1 G3 1 A1 1 A1 1 A

[R] "legend" question

2010-02-19 Thread Lu Wang
Hi, Sorry to forget providing the data before. I want to get a histogram with the legend for my data. I drew a normal density curve and kernel density curve in the histogram, and I also label mean and median in the X axis. From the code, I got two legend: One shows "Normal Density" and "Kernel De

[R] "Legend" question

2010-02-19 Thread Lu Wang
Hi, I want to get a histogram with the legend for my data. I drew a normal density curve and kernel density curve in the histogram, and I also label mean and median in the X axis. From the code, I got two legend: One shows "Normal Density" and "Kernel Density" and their corresponding lines, the

[R] Question about "Title"

2010-02-17 Thread Lu Wang
Hi, I want to produce a pie chart with titles. I used the following code. So it created a pie chart for the percentage of the score for ID="002". ID <- c("001","001","002","002","002","003","003","003","004","004","005","005","006") test <- c("A","B","A","B","C","A","B","C","A","B","A","B","A"

[R] How to draw a border for multiple graphs in one pager

2010-01-29 Thread Lu Wang
Hi, I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same). For example, my data is like this Concentration value A1 69 A2

[R] How to draw a border for multiple graphs in one page

2010-01-29 Thread Lu Wang
Hi, I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same). For example, my data is like this Concentration value A1 69 A2

[R] How to draw a border for multiple graphs in one page

2010-01-29 Thread Lu Wang
Hi, I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same). For example, my data is like this Concentration value A1 69 A2

[R] Postscript graphs

2010-01-25 Thread Lu Wang
Hi, I tried to use the following commands to create a postscript pie chart using R: postscript(file="H:/piechart.eps") # then I wrote my commands to generate the pie chart pie(filename,labels=,col=,radius=0.6) dev.off() After I ran those commands, instead of giving the pie chart, it showed > de