block by srinivashavanur 2978f0b300c9ee3735ba

Bar plot Implementation (Visual Implementation1)

Full Screen

Problem statement:

D3 - Work through Scott Murray’s D3 tutorial from the beginning through “The power of data()”. The goal is to produce a visualization similar to http://alignedleft.com/content/03-tutorials/01-d3/90-the-power-of-data/5.html. Use BlockBuilder to produce a block for this.

R - Use R to generate a bar chart similar to the D3 one above. You do not have to randomize your data, just graph a set of values that are generated in by your D3 example.


Name: Srinivas Havanur

Assignment: CS 725 - VI1 submission

Course: Information Visualization

Semester: Spring 2016


R image

Embedding R code in Markdown:

# Define the vector B with 25 different values
B <- c(25, 7, 5, 26, 11, 8, 25, 14, 23, 19, 14, 11, 22, 29, 11, 13, 12, 17, 18, 10, 24, 18, 25, 9, 3)

# Plot the bargraph with using color red
barplot(B, col="red")

# Create a title as "Visualization Implementation (VI1)" with a bold/italic font and a border around the graph
title(main="Visualization Implementation (VI1)", col.main="black", font.main=4)

index.html