Thursday, 28 March 2013

Drishtikon- Data Visualization and Coloring in 3D

                                     Data Visualization and Coloring in 3D

#this post is created as a solution for assignment for IT & Business Applications Lab, Spring Semester, VGSoM, IIT Kharagpur Class of 2014.

Assignment:1
  • Create 3 vectors, x, y, z and choose any random values for them.
  • Ensuring they are of equal length, bind them together.
  • Create 3 dimensional plots of the same.
Solution:
Commands used in R :
> Random1<-rnorm(30,mean=0,sd=1)
> Random1
> x<-Random1[1:10]
> x
> y<-Random1[11:20]
> y
> z<-Random1[21:30]
> z
> T<-cbind(x,y,z)
> T


Screenshots of Randomization of numbers using rnorm is given below:

    3D-visualization of the generated Vector>>>
     > plot3d(T[,1:3])

      Coloring is done in the following way:
      plot3d(T[,1:3],col=rainbow(64)):


    The points are represented as sphere using the following command:
     > plot3d(T[,1:3],col=rainbow(64),type= 's')

Assignment:2
  • Read the documentation of rnorm and pnorm,
  • Create 2 random variables
  • Create 3 plots:
  • 1. X-Y
  • 2. X-Y|Z (introducing a variable z and cbind it to z and y with 5 diff categories) 
  • 3. Color code and draw the graph 
  • 4. Smooth and best fit line for the curve
Solution:
Creating a data set for two random variables and then introducing third variable z
Commands

 X-Y ,X-Y|Z (introducing a variable z and cbind it to x and y with 5 diff categories)
> x<-rnorm(1500,100,10)
> y<-rnorm(1500,85,5)
> z1<-sample(letters,5)
> z2<-sample(z1,1500,replace=TRUE)
> z<-as.factor(z2)
> t<-cbind(x,y,z)
> qplot(x,y)
 
qplot(x,z)
 
 
 

qplot(x,z,alpha=I(1/10))
 
 
 
qplot(x,y,geom=c("point","smooth"))
 
 
 
 qplot(x,y,colour=z)
 
 
qplot(log(x),log(y),colour=z)
 
 
 

Saturday, 23 March 2013

"DrishtiKon"- An Insight into Data Visualization

#this post is created as a solution for assignments given on 19/03/2013 in IT & Business Applications Lab, Spring Semester, VGSoM, IIT Kharagpur Class of 2014.

Assignment:  
  • Install and experience 1/2 data visualization Tools( I have used Wolfram Alpha and Linkedin InMap).  
  • Write a small comparison among them. 
 
Data visualization is the study of the visual representation of data, meaning "information that has been abstracted in some schematic form, including attributes or variables for the units of information". The "main goal of data visualization is to communicate information clearly and effectively through graphical means.

A data visualization of Wikipedia as part of the World Wide Web, demonstrating hyperlinks
        

Tool Analysis:  Wolfram Alpha, the computational visualizational engine (www.wolframalpha.com)

  • Wolfram Alpha, the world's first and only computational knowledge engine, uses its expert-level knowledge and algorithms to visualize data in better way. And the newest domain is our own life and social network, as seen through your Facebook!
  • A feature Wolfram Alpha introduced back in September, Wolfram Alpha’s Facebook report delves into your profile and breaks down all of your activity into easy to digest graphs. It’s surprisingly comprehensive so data like times of interaction, word maps, relationship stats and network structure is all visualized for our convenience!!!!
  • Wolfram Alpha is based on Wolfram's earlier flagship product, a software suite called Mathematica, which is a computational platform or toolkit that encompasses computer algebra, symbolic and numerical computation, visualization, and statistics capabilities. Mathematica was designed by British entrepreneur and physicist Stephen Wolfram in 1988,
  • Users submit queries and computation requests via a text field. Wolfram Alpha then computes answers and relevant visualizations from a knowledge base of curated, structured data that come from other sites. Alpha thus differs from semantic search engines, which index a large number of answers and then try to match the question to one.
  • Using the Mathematica toolkit, Wolfram Alpha can respond to natural language questions via a text field and generate a a human-readable answer. Wolfram has said of the engine:
  • "All one needs to be able to do is to take questions people ask in natural language, and represent them in a precise form that fits into the computations one can do."
Its three main characteristic which makes it useful to be used are:
  •  Make your Facebook Page stand out : It has been observed that people using this tool have many times more reader comments
  • Allow people to explore data online: Engages readers and allows them to explore data by converting your data into interactive graphs and charts and maps.
  • Share Visualizations: It allows people to share the graph or charts or dashboards can be embedded into your website or can be shared via any social media networks like Facebook , twitter and so on.

Steps to launch the Application:
  • It’s pretty straightforward :). All we have to do is
  • type “facebook report” into the standard Wolfram|Alpha website.
  • you’ll be prompted to authenticate the Wolfram Connection app in Facebook, and then sign in to Wolfram|Alpha (yes, it’s free).
  • Wolfram|Alpha will immediately get to work generating a personal analytics report from the data it can get about you through Facebook.                                


Output
1.Personal Information
2.Bar and Pie charts of daily activity( Posted Links, Status, Uploaded Photos).
                                         
3.Where in the world are my friends in form of a clustering(not many in Alaska :)
                                          
4. My Most frequently used words on Facebook( Amazing, isn't it!!!)
                                   
5. Friend's Network:

     Clicking on any of the point will open the respective friend's FB page with Friend's List :)

6. Analysis of Weekly Activity

        



Tool Analysis: 

LinkedIn Maps, the Network Visualizer(inmaps.linkedinlabs.com)

                                                                             

Considering the nature of LinkedIn, this is an incredibly handy tool to have if you want to identify what areas you’re influential in and see how tight your connections are. The information displayed is rather simple, LinkedIn’s app will color code your connections, based on their links with mutual connections, and bring them together for you to identify different professional networks.

InMaps is an interactive visual representation of your professional universe. It's a great way to understand the relationships between you and your entire set of LinkedIn connections. With it you can better leverage your professional network to help pass along job opportunities, seek professional advice, gather insights, and more

When your map is created, you can give each cluster a label, although you will want to make them general since there are only five colours and not everyone in a cluster will fit neatly into the labels you give. However, despite that flaw, LinkedIn Maps is a great way of seeing how professional network connect.

Steps to launch the Application:
  • Check inmaps.linkedinlabs.com
  • Allow the app. to use your profile


3. The network will be created and shown to you.

                                                                           Output

    

         Some Comparison among The two tools used

     
        As a user of both the two visual tools, I can say the similarities are:
  • Both need not be downloaded and installed, Just needs a java     enabled browser
  • Both are freeware
  • Since data gathering is done only after user's authentication, privacy is maintained.
        And, the differences are :
  • Wolfram Alpha mainly emphasizes on Visualizing Social sites( FaceBook etc.), where Linkedin InMap is used professionally for Linkedin Networks.
  • Where the 1st one emphasizes a lot on quantitative analysis of data, 2nd one works only on visualization part. 
  • Wolfram Alpha has wide variety of visualizations, where InMap doesn't have that much variations.


         References: http://www.wolframalpha.com
         http://inmaps.linkedinlabs.com/
         http://www.wikipedia.com
       
       Here are few links where details about popular data visualization tools can be found out:
        http://www.netmagazine.com/features/top-20-data-visualisation-tools
        http://www.computerworld.com/s/article/9214755/Chart_and_image_gallery_30_free_tools_for_data_visualization_and_analysis
        http://www.creativebloq.com/design-tools/data-visualisation-712402
        http://www.teachthought.com/technology/5-free-data-visualization-tools-you-can-use-in-the-classroo/
        http://itlyderis.wordpress.com/2013/03/05/22-free-tools-for-data-visualization-and-analysis-pcworld/