[R] Legend for two plots

2009-12-18 Thread Marc Giombetti
Dear R users, I am new to R and I couldn't figure out how to solve the following problem: I am trying to put a legend below two plots using the code below. The legend appears in the second plot, but I want the legend to appear below the two plots in the center of the total chart. At the moment th

[R] Basic question on nominal data

2009-11-17 Thread Marc Giombetti
Hello everybody, I am new to R and I have a very basic question, but I couldn't get this to work. Let's say I have a vector s = c("a","a","a","b","b","c","c","c","c") s1 <- factor(s) s2 <- summary(s1) leads to the following a b c 3 2 4 How can I access the different aggregated values for a b a