Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread Jeff Newmiller
Please study each line of code, and use the str command to study the intermediate data objects... the examples on this list are almost never plug-and-play for your real work. Note that while you provided some of the code necessary to make your example reproducible, I had to fill in blanks with

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread maryam moazam
Dear Michael, Thanks for your feedback. Actually, I would like to show (and compare) size distribution of df1 and df2 in the single plot using ggplot2, something like the attached picture. The command dosesn't lead me to this purpose. However, I'm really new here, could you please help me more on

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread Michael Dewey
Sorry Maryam but I use neither reshape nor ggplot2 so I will leave it to others to advise you. On 09/01/2016 14:29, maryam moazam wrote: Dear Michael, Thanks for your feedback. Actually, I would like to show (and compare) size distribution of df1 and df2 in the single plot using ggplot2, some

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread Michael Dewey
Dear Maryam If you just need all the values of size would c(df1$size, df2$size) work? On 08/01/2016 21:44, maryam moazam wrote: Dear Sir / Madam, I have just come to the amazing R software, so please be patient if my question is basic for you. I have 2 text file (say 1.txt and 2.txt), each fil

[R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-08 Thread maryam moazam
Dear Sir / Madam, I have just come to the amazing R software, so please be patient if my question is basic for you. I have 2 text file (say 1.txt and 2.txt), each file containing 2 columns and different row numbers, like below case size case1 120 case2 120 case3 121 case4 121 case5 121 case6 122