Publications by Riddhiman

Regression Diagnostic Plots using R and Plotly

25.12.2015

Plotly is a platform for making, editing, and sharing customizable and interactive graphs. Embedding Plotly graphs in a R-Markdown document is very easy. Here, we will genarate a R-Markdown document with embedded Plotly charts to visualize regression diagnostic plots similar to the ones generated by using plot() on a fitted lm() object. R-Studio...

2026 sym R (3241 sym/4 pcs) 8 img

R-Markdown and Knitr Tutorial (Part 1)

28.12.2015

R-Markdown is a great way to create dynamic documents with embedded chunks of R code. The document is self contained and fully reproducible which makes it very easy to share. This post will be the first in a multi part series on how to embed Plotly graphs in R-Markdown documents as well as presentations. R-Markdown is a flavor of markdown which a...

2133 sym R (633 sym/2 pcs) 13 img

R-Markdown and Knitr Tutorial (Part 2)

28.12.2015

In our last post we quickly went over how to create a new R-Markdown document and embed a Plotly graph in it. In this post we’ll get into more details around how to control code output using chunk options. As shown in our previous post, for the embedded R code to be evaluated, it’ll need to be written inside a code-chunk as shown below. ```...

3311 sym R (2563 sym/14 pcs) 1 img

Fun with Heatmaps and Plotly

29.12.2015

Just because we all like numbers doesn’t mean we can’t have some fun. Here’s to wishing to everyone a very Happy New Year ! # install.packages("jpeg") library(jpeg) library(plotly) # Download a jpeg file from imgur URL <- "http://i.imgur.com/FWsFq6r.jpg" file <- tempfile() download.file(URL, file, mode = "wb") # Read in JPEG file...

524 sym R (2392 sym/1 pcs)

Eight Advantages of Python Over Matlab

01.01.2016

The original post is here. Dr. Phillip Feldman has kindly agreed to let us repost his thoughts on some key differences between Matlab and Python. 1. readability Python code tends to be more compact and more readable than Matlab code. There are several reasons for this: indentation Unlike Matlab, which uses end statements as closu...

9460 sym Python (348 sym/6 pcs)

10 D3.js and WebGL weather, maps, and geography charts made in Python and R

16.01.2016

Below are 10 charts made in R or Python by Plotly users on weather, maps and geography. 1. Doctor Who? – Timelords weather forecast for different cities Chart Link: https://plot.ly/~wthrmn/30/timelords-weather-forecast-1152016/Chart Author: @ wthrmnTouched up in: Plotly online editorCode: Python code R Code 2. Its raining ! – US Precipitat...

2590 sym 20 img

Voronoi Diagrams in Plotly and R

01.02.2016

Here’s a function which uses plotly’s R Library to overlay a voronoi diagram on top of a 2-D K-Means visualization. Visit the Getting Started section to get Plotly up and running using R. Here’s a quick rundown on how this function works: Accepts a data frame containing x and y coordinates of a bunch of data points The dataframe must have ...

1354 sym R (12244 sym/3 pcs) 1 img

15 graphs on consumer and brand research made by Plotly users

08.02.2016

Below are 15 charts made in Plotly or using Ploty’s APIs by users on Brand and consumer Research. 1. So what if I’m old – Brand choices for Age > 60 Chart Link: https://plot.ly/~snawel/80/brand-choices-for-age-60/ Chart Author: @ snawel Touched up in: Plotly online editor Code: Python code R Code 2. DND, I am watching TV – Nielson Rati...

4102 sym 30 img

13 graphs on Outer Space, Satellites, and Astrophysics made in Python or R

18.02.2016

Below are 13 charts made in Plotly or using Ploty’s APIs by users on Outer Space, Satellites and Astrophysics 1. Flybys of Minor Planets, Pioneer 10 and 11, Voyager I and II, and New Horizons Chart Link: https://plot.ly/~alexhp/57/flybys-of-minor-planets-in-the-outer-solar-system-pioneer-10-and-11-voyager-i-an/ Chart Author: @ alexhp Touched ...

3022 sym 26 img

Portfolio Optimization using R and Plotly

02.04.2016

In this post we’ll focus on showcasing Plotly’s WebGL capabilities by charting financial portfolios using an R package called PortfolioAnalytics. The package is a generic portfolo optimization framework developed by folks at the University of Washington and Brian Peterson (of the PerformanceAnalytics fame). You can see the vignette here Let�...

2142 sym R (4240 sym/8 pcs)