Hello All:

Can somebody please tell me how I can have the average of 'y' on the graph
for different values of 'x in the following code?

ofn <- "xy.png"

bitmap(ofn, type = "png256", width = 21, height = 30, pointsize = 30, bg =
"white",res=50)

ifn  <-  sprintf("xy.txt")

data <-  read.table(ifn)

names(data) <- c("x","y")

Graph <- plot(data$x, data$y)

dev.off()

Thanks,
MJK

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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 via email to