plot - How to replicate a Monthly Cycle Chart in R -


i'd output chart similar 1 represented on page (on right) using r , package make good:

http://processtrends.com/pg_charts_monthly_cycle_chart.htm

anyone challenge? :)

thanks!

the stats package in r base has function this. here one-liner , output produces

monthplot(redata, labels = month.abb, ylab = 'listings') 

enter image description here

building on example of using monthplot weekly cycle plot here (gives full r code , source data): http://figshare.com/figures/index.php/openurl_router_data:_total_requests_by_weekday

monthplot(ts(sdf$values, frequency = 7, start=c(12,5)), labels = dow, ylab = "no. requests / day", xlab = "weekday")  

which gives weekly cycle plot: example of monthplot create graph showing weekly cycle http://figshare.com/figures/images/a/a7/total_requests_by_weekday_01_apr_to_31_jul_2011.jpeg


Comments