Generating Heat Maps for eye-tracker data

A heat map is a graphical representation of data where the individual values contained in a matrix are represented as colors. –Wikipedia  Concept Here is my approach to deal with it. All that is need is a frequency of a value being repeated in case of one dimension and then creating a color  map for high to low and plotting them on a graph. Problem statement For eye tracking data, we are dealing with a 2d data of x and y points. In the experiement there are squares of size 3.4cm. They are arranged in 10 colomns and 6 rows. We want to see in which of those squares are hit more frequently and produce a heatmap. Experiment data For the hits, we have the data from the participant eye tracking. After some manipulations from the eye tracker raw data, we get points x and y. Here we are not using time series analysis so time stamps are not required. The experiment uses a specific eye tracker but the data is saved using python and the format of the data looks like the following TimestamptTriggertLeftValiditytRightValiditytLeftXtLeftYRigthXtRightY Data from userXX trialXXX [wpdm_file id=3] Solution code positions <- read.table(“http://blog.southpaw.in/?wpdmact=process&did=My5ob3RsaW5r”) br.x <- seq(-23.5, 23.5, length.out=10) br.y <- seq(-16.1, 16.1, length.out=6) int.x <- findInterval(positions[,1], br.x) int.y <- findInterval(positions[,2], br.y) #See footnote int.x <- factor(int.x, levels=10) int.y <- factor(int.y, levels=6) tb <- table(int.x, int.y) image(br.x, br.y, tb, xlab=”X”, ylab=”Y”, las=1, main=”Heat map”) Conclusion The image generated can be interpreted as red with low frequecy or almost no… Read more



Installing MEAN stack for Fullstack application development

The best one liner for what MEAN stack is given in the following picture. MEAN stack is more like LAMP. M = MongoDB E = ExpressJS A = AngularJS N = NodeJS MEAN Stack Logo There has been a lot of development from Google for the AngularJS and NodeJS. They are minimalistic and javascript based, for now cutting edge web development tools. For installing MEAN stack in ubuntu, follow the commands to set up your MEAN Stack. I deployed my server in Digitalocean which is like my obsessed service for cloud deployment. Install MongoDB #~ sudo apt-get install mongodb Install NodeJS and Npm #~ sudo apt-get install nodejs npm and create a symlink #~ sudo ln -s /usr/bin/nodejs /usr/bin/node Install Bower #~ sudo npm install -g bower Install Grunt #~ sudo npm install -g grunt-cli Install MEAN sudo npm install -g mean-cli Init your first App $ mean init testApp type in your IPaddress with port 3000 http://xxx.xxx.xxx.xxx:3000