[R] Subject: transform excel data into graph

Nguyen Dinh Nguyen n.nguyen at garvan.org.au
Tue Jul 10 00:54:46 CEST 2007

Is this you want?

graph <- matrix(n, nrow=5, ncol=3)

colnames(graph) <- c("Nick", "John", "Peter")
rownames(graph) <- c("Lesson1","Lesson2","Lesson3", "Lesson4","Lesson5")

g <- barplot2(graph, beside = TRUE,
        col = "black",
        legend = rownames(graph),
        ylim = c(0, 1),
        ylab="lable here",
        plot.grid = TRUE)

What I want to do is a 2d-graph plot where I will have  the name of the
student in the X-axis and the name of the lesson in the Y-axis and the
number from each pair will be used to construct the plot. I am newbie with R
and I don't know which package shall I use nor the commands with which I
will import my data in R so that the plot will be created...

More information about the R-help mailing list