Re: [R] ggplot2-Problem (plot different variables)

2012-04-20 Thread ONKELINX, Thierry
t a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens David Studer Verzonden: vrijdag 20 april 2012 10:31 Aan: r-help@r-project.org Onderwerp: [R] ggplot2-Problem (

[R] ggplot2-Problem (plot different variables)

2012-04-20 Thread David Studer
Hi everyone! I have the following difficulties using ggplot2 # My Data data<-as.data.frame(cbind(a=c(1,1,2,2,2,2,3,3,4), b=c(1,2,3,3,4,4,4,4,4))) And I would like to plot the frequency-distributions of both variables in one plot as lines. For both variables the values (1-4) should be on the x-ax