search for: wangxipei

Displaying 3 results from an estimated 3 matches for "wangxipei".

2011 Apr 16
5
how to get the plot like this by R?
...nformative and clear. But I don't know what type the graph is. It looks like a sactter plot but has the points with the same y values are seperate.. I really aprreciate it if someone can tell the type name of the plot and how to get it in R. Xipei Wang, Tel: +86-0-152 1089 2231 Email: wangxipei@gmail.com [[alternative HTML version deleted]]
2011 Jan 13
6
add a linear regression line to the plot
Dear R users, I am a new R user. My problem is very simple: I want to add a linear regression line to the plot(type="p"), codes are as below: x<-c(10,20,40,80) y<-c(30,40,100,200) plot(x,y,type="p") lines(lm(x~y),col="red",lwd=1.5) I got only plot without linear line. Many thanks ahead for your advice! Xipei Wang [[alternative HTML version deleted]]
2011 Jan 18
1
plot continuous data vs clock time
Dear R users, I have a question about ploting clock time, the example is as below: y<-seq(from=1, to=30, by=5) x<-c("0:01","1:20", "8:40", "9:25", "15:30", "21:23") x<-as.POSIXct(strptime(paste(x),"%H:%M")) plot(y~x, type="p") I got the plot, but if I want to plot the x range from 1:20 to