For this assignment I picked dataset "TextPrices.csv" from the website which was provided to us by Dr. Friedman. The data set looks something like below:
Here is the code chunk:
It produces these 3 plots below.
Generally the result conveys that as number of pages go up, price for the book reasonably rises too-
My insight:
I know of base Plots, and usually don't use the base plot functions because I find it cumbersome. Plots can't combine multiple layout unless layouts follow right after the plot functions. Moving on, Lattice didn't particularly fit my data, so I had to do some google search. Furthermore, I have never used the Lattice and I can see it fitting well on real scientific data-sets. Lastly, ggplot2 have been my friend since I got into R. At this point I know more about plotting with ggplot2 than plotting with the base Plot function.
I hope you like this, let me know if you've any question.
~Mihir
Here is the code chunk:
It produces these 3 plots below.
Generally the result conveys that as number of pages go up, price for the book reasonably rises too-
My insight:
I know of base Plots, and usually don't use the base plot functions because I find it cumbersome. Plots can't combine multiple layout unless layouts follow right after the plot functions. Moving on, Lattice didn't particularly fit my data, so I had to do some google search. Furthermore, I have never used the Lattice and I can see it fitting well on real scientific data-sets. Lastly, ggplot2 have been my friend since I got into R. At this point I know more about plotting with ggplot2 than plotting with the base Plot function.
I hope you like this, let me know if you've any question.
~Mihir




Comments
Post a Comment