March 2017

Hierarchical Clustering Nearest Neighbors Algorithm in R

March 9, 2017 | Aaron Schlegel

Hierarchical clustering is a widely used and popular tool in statistics and data mining for grouping data into ‘clusters’ that exposes similarities or dissimilarities in the data. There are many approaches to hierarchical clustering as it is not possible to investigate all clustering possibilities. One set of approaches to hierarchical... ...
[Read more...]

The Rise of Civilization, Visualized with R

March 9, 2017 | David Smith

This animation by geographer James Cheshire shows something at once simple and profound: the founding and growth of the cities of the world since the dawn of civilization. Dr Cheshire created the animation using R and the rworldmap package, using data from this Nature dataset. The complete R code is ... [Read more...]

Some Win-Vector R packages

March 9, 2017 | John Mount

This post concludes our mini-series of Win-Vector open source R packages. We end with WVPlots, a collection of ready-made ggplot2 plots we find handy. Please read on for list of some of the Win-Vector LLC open-source R packages that we are pleased to share. For each package we have prepared ...
[Read more...]

Forecasting Stock Returns using ARIMA model

March 9, 2017 | R programming

By Milind Paradkar “Prediction is very difficult, especially about the future”. Many of you must have come across this famous quote by Neils Bohr, a Danish physicist. Prediction is the theme of this blog post. In this post, we will cover the popular ARIMA forecasting model to predict returns on ...
[Read more...]

Spatial analysis with ggmap Exercises (part-1)

March 9, 2017 | Siddhartha Bora

R has many powerful libraries to handle spatial data, and the things that R can do with maps can only grow. This exercise tries to demonstrate a few basic functionalities of the ggmap package in R while dealing with raster images. The ggmap package can be used to access maps ... [Read more...]

The nhmrcData package: NHMRC funding outcomes data made tidy

March 8, 2017 | nsaunders

Do you like R? Information about Australian biomedical research funding outcomes? Tidy data? If the answers to those questions are “yes”, then you may also like nhmrcData, a collection of datasets derived from funding statistics provided by the Australian National Health & Medical Research Council. It’s also my first R ...
[Read more...]

It seems dplyr is overtaking correlation heatmaps

March 8, 2017 | mrtnj

(… on my blog, that is.) For a long time, my correlation heatmap with ggplot2 was the most viewed post on this blog. It still leads the overall top list, but by far the most searched and visited post nowadays is this one about dplyr (followed by it’s sibling about ... [Read more...]

Dataviz of the week: 8/3/17

March 8, 2017 | Robert

  Corinne Riddell posted this on Twitter. It’s one version of multiple time series that she tried out, one for each USA state. It’s not the finished article, but is really nice for its combination of that recognisable shape (I … Continue reading →
[Read more...]

Lesser known dplyr tricks

March 8, 2017 | Econometrics and Free Software

In this blog post I share some lesser-known (at least I believe they are) tricks that use mainly functions from dplyr. Removing unneeded columns Did you know that you can use - in front of a column name to remove it from a data frame?
mtcars %>% 
    select(-disp) %>% 
    head()
##                    mpg cyl  hp drat    wt  qsec vs am gear carb
## Mazda RX4         21.0   6 110 3.90 2.620 16.46  0  1    4    4
## Mazda RX4 Wag     21.0   6 110 3.90 2.875 17.02  0  1    4    4
## Datsun 710        22.8   4  93 3.85 2.320 18.61  1  1    4    1
## Hornet 4 Drive    21.4   6 110 3.08 3.215 19.44  1  0    3    1
## Hornet Sportabout 18.7   8 175 3.15 3.440 17.02  0  0    3    2
## Valiant           18.1   6 105 2.76 3.460 20.22  1  0    3    1
Re-ordering columns Still ... [Read more...]

Interactive Maps and ETF Analysis

March 7, 2017 | R Views

In this post, I’ll describe a Shiny app to support the Emerging Markets ETF Country Exposure analysis developed in a previous post I have done some additional work and updated the analysis to include five ETFs in the app, whereas we originally imported data on 1 ETF. The new notebook ... [Read more...]

Interactive Maps and ETF Analysis

March 7, 2017 | R Views

In this post, I’ll describe a Shiny app to support the Emerging Markets ETF Country Exposure analysis developed in a previous post I have done some additional work and updated the analysis to include five ETFs in the app, whereas we originally imported data on 1 ETF. The new notebook ... [Read more...]
1 12 13 14 15 16 19

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)