add layer to specific panel of facet_plot output

December 27, 2016
By
add layer to specific panel of facet_plot output

This is a question from ggtree google group: Dear ggtree team, how can I apply a geom_xxx to only one facet panel? For example if i want to get geom_hline(yintersect=1:30) or a geom_text() in the dot panel? I cant see the facet_grid(. ~ var) function call, so I don’t know which subsetting to use. I have already read http://stackoverflow.com/questions/29873155/geom-text-and-facets-not-working ...

Read more »

An Overview of Room Rentals in Sydney | RSelenium, rvest, Leaflet, googleway

December 27, 2016
By
An Overview of Room Rentals in Sydney | RSelenium, rvest, Leaflet, googleway

Started another data scraping script similar to the post about rental rates in Houston; except this time i picked Sydney, Australia. The site that i’ve selected uses an awful lot of javascript, so the rvest package won’t be enough in … Continue reading →

Read more »

Why you should master R (even if it might eventually become obsolete)

December 27, 2016
By

In last week’s blog post I asked How much data science do you actually remember? It’s a critical question. If you study data science, but forget everything that you learn, you’ll be in big trouble when you go in for an interview. Or, you’ll be in big trouble if you actually get a data science The post

Read more »

Spatial analysis pipelines with simple features in R

December 27, 2016
By

In November, the new simple features package for R sf hit CRAN. The package is like rgdal, sp, and rgeos rolled into one, is much faster, and allows for data processing with dplyr verbs! Also, as sf objects are represented in a much simpler way than sp objects, it allows for spatial analysis in R within...

Read more »

Start with wordcloud

Start with wordcloud

I followed my good resolutions on practising data analysis in my previous post and started to play with the French drug database. After importing the data, I started classically with data visualisation. In this database, there is a lot of text data. To visualise this, some wordcloud is always welcome. They are maybe not accurate at all but...

Read more »

Data Preparation, Long Form and tl;dr Form

December 26, 2016
By
Data Preparation, Long Form and tl;dr Form

Data preparation and cleaning are some of the most important steps of predictive analytic and data science tasks. They are laborious, where most of the errors are made, your last line of defense against a wild data, and hold the biggest opportunities for outcome improvement. No matter how much time you spend on then, they … Continue...

Read more »

The Basics of Bayesian Statistics

December 26, 2016
By

Bayesian Inference is a way of combining information from data with things we think we already know. For example, if we wanted to get an estimate of the mean height of people, we could use our prior knowledge that people are generally between 5 and 6 feet tall to inform the results from the data we collect. If our...

Read more »

Descriptive Analytics-Part 5: Data Visualisation (Spatial data)

December 25, 2016
By
Descriptive Analytics-Part 5: Data Visualisation (Spatial data)

Descriptive Analytics is the examination of data or content, usually manually performed, to answer the question “What happened?”. In order to be able to solve this set of exercises you should have solved the part 0, part 1, part 2,part 3, and part 4 of this series but also you should run this script which

Read more »

Building Shiny App exercises part 3

December 25, 2016
By
Building Shiny App exercises part 3

ADD CONTROL WIDGETS Welcome to the third part of our series. In this part you will learn how to build and place inside your app the rest of the widgets which were mentioned in part 2. More specifically we will analyze: 1) helptext, 2) numericInput, 3) radioButtons, 4) selectInput, 5) sliderInput and 6) textInput. As

Read more »

Googly: An interactive app for analyzing IPL players, matches and teams using R package yorkr

December 25, 2016
By
Googly: An interactive app for analyzing IPL players, matches and teams using R package yorkr

Presenting ‘Googly’, a cool Shiny app that I developed over the last couple of days. This interactive Shiny app was on my mind for quite some time, and I finally got down to implementing it. The Googly Shiny app is based on my R package ‘yorkr’ which is now available in CRAN. The R package … Continue...

Read more »

Extracting data on shadow economy from PDF tables

December 25, 2016
By
Extracting data on shadow economy from PDF tables

Data on the shadow economy? I’m reading Kenneth Rogoff’s The Curse of Cash. It was one of Bloomberg’s Best Books of 2016 and the Financial Times’ Best Economics Books of 2016, and I recommend it. It’s an excellent and convincing book, makin...

Read more »

Christmas Tree with ggplot

December 25, 2016
By
Christmas Tree with ggplot

# create data x <- c(8,7,6,7,6,5,6,5,4,5,4,3,4,3,2,3,2,1,0.5,0.1) dat1 <- data.frame(x1 = 1:length(x), x2 = x) dat2 <- data.frame(x1 = 1:length(x), x2 = -x) dat1$xvar <- dat2$xvar <- NA dat1$yvar <- dat2$yvar <- NA dat1$siz <- dat2$siz <- NA dat1$col <- dat2$col dec_threshold){ dat1$xvar <- row #sample(1:dat1$x1,1) dat1$yvar <- sample(1:dat1$x2-1,1) dat1$siz <- runif(1,0.5,1.5) dat1$col dec_threshold){ dat2$xvar <-

Read more »

Computing Sample Size for Variance Estimation

December 24, 2016
By
Computing Sample Size for Variance Estimation

The R package samplesize4surveys contains functions that allow to calculate sample sizes for estimating proportions, means, difference of proportions and even difference of two means. It also permits the calculation of sample error and power level for ...

Read more »

Distributional Semantics in R: Part 1 {tm} classes + read/write

December 24, 2016
By
Distributional Semantics in R: Part 1 {tm} classes + read/write

The R code for this tutorial on Methods of Distributional Semantics in R is found in the respective GitHub repository. Following my Methods of Distributional Semantics in R BelgradeR Meetup with Data Science Serbia, organized in Startit Center, Belgrade, 11/30/2016, several people asked me for the R code used for the analysis of William Shakespeare’s...

Read more »

New Release of ggguitar available on CRAN

December 24, 2016
By
New Release of ggguitar available on CRAN

Based on feedback ggguitar has been updated and released on CRAN.  The updated vignette includes more examples of how the package can be used.  Example below as well: Update - Blogger was reformatting the R code - so made it available in this gist instead.Merry Christmas.

Read more »

anytime 0.2.0: Feature, fixes and tests!

December 24, 2016
By

A brand new anytime package just arrived at CRAN. This is release number eight, evenly spread with over two per month, since the initial release in September. Needless to say I have been told off not to make this many releases. As they say, no good deed goes unpunished. anytime is a very focused package aiming to...

Read more »

Does replyr::let work with data.table?

December 24, 2016
By
Does replyr::let work with data.table?

I’ve been asked if the adapter “let” from our R package replyr works with data.table. My answer is: it does work. I am not a data.table user so I am not the one to ask if data.table benefits a from a non-standard evaluation to standard evaluation adapter such as replyr::let. Using replyr::let with data.table looks … Continue...

Read more »

Functional programming and unit testing for data munging with R available on Leanpub

December 23, 2016
By

The book I’ve been working on these pasts months (you can read about it here, and read it for free here) is now available on Leanpub! You can grab a copy and read it on your ebook reader or on your computer, and what’s even better is that it is av...

Read more »

Classification with Linear Discriminant Analysis

December 23, 2016
By

Classification with linear discriminant analysis is a common approach to predicting class membership of observations. A previous post explored the descriptive aspect of linear discriminant analysis with data collected on two groups of beetles. In this post, we will use the discriminant functions found in the first post to classify... The post Classification with Linear Discriminant Analysis appeared...

Read more »

Get Ready for RStudio::Conf

December 23, 2016
By

by Joseph Rickert The 2017 R Conference season will get off to an early start on January 13th and 14th with RStudio::Conf 2017 in Orlando, Florida. The schedule promises an intense but collegial experience with plenty of hands-on practice working with R and the RStudio tool chain of packages and products. To prepare for the

Read more »

Merry ChRistmas!

December 23, 2016
By
Merry ChRistmas!

Christmas day is soon upon us, so here's a greeting made with R: Each frame is a Voronoi Tesselation: about 1,000 points are chosen across the plane, which each generate a polygon comprising the region closer to it than any other selected point. These process is repeated for three designs (a heart, the word "Merry", and the word "Xmas"),...

Read more »

Did you say SQL Server? Yes I did….

December 23, 2016
By
Did you say SQL Server? Yes I did….

Introduction My last blog post in 2016 on SQL Server 2016….. Some years ago, I have heard predictions from ‘experts‘ that within a few years Hadoop / Spark systems would take over traditional RDBMS’s like SQL Server. I don’t think … Continue reading →

Read more »

forecastHybrid 0.3.0 on CRAN

December 23, 2016
By
forecastHybrid 0.3.0 on CRAN

Make it easy to make ensemble time series forecast forecastHybrid is an R package to make it easier to use the average predictions of ‘ensembles’ (or ‘combinations’) of time series models from Rob Hyndman’s forecast package. It looks after t...

Read more »

Price Volatility – Basic Brownian Motion

December 23, 2016
By
Price Volatility – Basic Brownian Motion

The Situation You are a consultant who has been hired by a business that sells one commodity product. On December 31st the price is $100 per unit. The business owner wants to know what to expect by the end of January. Your client gave you the message: Prices are based off the the sales the

Read more »

finch – parse Darwin Core files

December 23, 2016
By

finch has just been released to CRAN (binaries should be up soon). finch is a package to parse Darwin Core files. Darwin Core is: a body of standards. It includes a glossary of terms (in other contexts these might be called properties, elements, fields, columns, attributes, or concepts) intended to facilitate the sharing of information about biological diversity by...

Read more »

Merry Christmas 2016 (with R)

December 22, 2016
By
Merry Christmas 2016 (with R)

I'd like to wish all my readers a Merry Christmas 2016- R style! Behold my 3d Christmas tree created using the plot3D R package: While this might seem like yet another Christmas decoration done in R, it is unique in that the tree is rendered in 3d perspective. I myself wrote...

Read more »

Ordering Categories within ggplot2 Facets (followup)

December 22, 2016
By
Ordering Categories within ggplot2 Facets (followup)

I saw Simon Jackson’s recent blog post regarding ordering categories within facets. He proposed a way of dealing with the problem of ordering variables shared across facets within facets. This problem becomes apparent in text analysis where words are shared … Continue reading →

Read more »

Price Volatility – Basic Brownian Motion

December 22, 2016
By
Price Volatility – Basic Brownian Motion

You are a consultant who has been hired by a business that sells one commodity. The business owner wants to know what to expect by the end of January.

Read more »

Kindle Clippings

December 22, 2016
By

I highlight a lot of junk on my Kindle. Well, it’s not all junk! 💩 There’s usually some good stuff buried deep within my clippings.txt file. But it’s hard to manually parse through the file (and the junk). In the past I’ve relied on online ...

Read more »

Sponsors

Mango solutions







Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

ODSC1

ODSC2

datasociety

http://www.eoda.de







CRC R books series







Six Sigma Online Training





Contact us if you wish to help support R-bloggers, and place your banner here.