[This article was first published on Stencilled, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
In this post we see how the no. of breweries stack up against no. of colleges across USA. Here I am using d3js and a grid bar chartwhere each grid represents 5 breweries/colleges.I collected the data for Brewery
from Beer Advocate and for colleges from wikipedia
< !DOCTYPE html>
< charset="utf-8">
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
< svg width="450">
< g class="chart" transform="translate(20, 40)">
< text class="title" x="300" y="-11" >Breweries vs Colleges in US
< g class="legend" transform="translate(870,-20)" >
< rect width="13" height="13" />
< text x="17" y="11"> = 5
< g class="y axis" />
< g class="bars" transform="translate(10, 0)">
To leave a comment for the author, please follow the link and comment on their blog: Stencilled.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.