Uncategorized

R Ultimate Histogram

Histogram in R

Histogram in R After a lot of finessing, code in R for a really great Histogram     library(ggplot2) library(formattable) library(scales) # http://t-redactyl.io/blog/2016/02/creating-plots-in-r-using-ggplot2-part-7-histograms.html windowsFonts(Tahoma=windowsFont(“Tahoma”)) lengthselect <- flist_widget[flist_widget$length==10,] lengthselect summary(lengthselect) barfill <- “cyan3” barlines <- “#1F3552” meanprice <- mean(lengthselect$price) medianprice <- currency(median(lengthselect$price), digits=0L) sdprice <- currency(sd(lengthselect$price), digits=0L) rangeprice <- currency(range(lengthselect$price), digits=0L) minprice <- currency(min(lengthselect$price), digits=0L) maxprice
+ Read More