508 search results for "boxplot"

Create an inset plot

October 10, 2016
By
Create an inset plot

How to inset a plot on another plot in R The difficulty of plotting one plot over the top of another in R has always frustrated me. I often end up opening some photo editing software (like Gimp, which is free) and doing it manually. However, manual ed...

Read more »

Make ggplot graphics2 interactive with ggiraph

October 10, 2016
By

R's ggplot2 package is a well-known tool for producing beautiful static data visualizations that you can include in a printed report. But what if you want to include a ggplot2 graphic on a webpage and provide the ability for the user to interact with the data? The ggiraph package by David Gohel (available for installation via CRAN). WIth ggiraph,...

Read more »

The yarrr package (0.0.8) is (finally!) on CRAN

October 10, 2016
By
The yarrr package (0.0.8) is (finally!) on CRAN

Great news R pirates! The yarrr package, which contains the pirateplot, has now been updated to version 0.0.8 and is up on CRAN (after hiding in plain sight on GitHub). Let’s install the latest version (0.0.8) and go over some of the updates: The most important function in the yarrr package is pirateplot(). What the heck ...

Read more »

One Way Analysis of Variance Exercises

September 30, 2016
By
One Way Analysis of Variance Exercises

When we are interested in finding if there is a statistical difference in the mean of two groups we use the t test. When we have more than two groups we cannot use the t test, instead we have to use analysis of variance (ANOVA). In one way ANOVA we have one continuous dependent variable

Read more »

Sentimental Analysis of the First Presidential Debate of 2016 Using Machine Learning

September 27, 2016
By
Sentimental Analysis of the First Presidential Debate of 2016 Using Machine Learning

This post analyzes sentiment of people towards the 2016 presidential candidates post the First Presidential Debate using Tweets. We focus on Tweets containing the names of Hillary Clinton and Donald Trump.Let’s load the required packageslibrary(twitteR)library(ROAuth)require(RCurl)library(stringr)library(tm)library(plyr)library(tm)library(wordcloud)Setting up Twitter Authenticationconsumer_key = "consumer_key"consumer_secret = "consumer_secret"token_secret = "token_secret"access_token = "access_token"authenticate <- OAuthFactory$new(consumerKey = consumer_key,consumerSecret = consumer_secret,requestURL="https://api.twitter.com/oauth/request_token",accessURL="https://api.twitter.com/oauth/access_token",authURL="https://api.twitter.com/oauth/authorize")setup_twitter_oauth(consumer_key, consumer_secret, access_token, token_secret)Web ScrapingLet’s search what has been tweeted...

Read more »

Linear mixed-effects model with bootstrapping.

September 23, 2016
By
Linear mixed-effects model with bootstrapping.

Dataset here. We are going to perform a linear mixed effects analysis of the relationship between height and treatment of trees, as studied over a period of time. Begin by reading in the data and making sure that the variables have the appropriate datatype. tree<- read.csv(path, header=T,sep=",") tree$ID<- factor(tree$ID) tree$plotnr <- factor(tree$plotnr) Plot the initial graph to…

Read more »

Paired t-test in R Exercises

September 21, 2016
By
Paired t-test in R Exercises

The paired samples t test is used to check if there are any differences in the mean of the same sample at two different time points. For example a medical researcher collects data on the same patients before and after a therapy. A paired t test will show if the therapy improves patient outcomes. There

Read more »

Philadelphia loses a TIGER — Bad omen or statistical inevitability?

September 15, 2016
By
Philadelphia loses a TIGER — Bad omen or statistical inevitability?

Lions, TIGERs, US DOT Funding, oh my. For the first time in seven years, Philly has lost a TIGER. WHAT?! Not to worry, there are no escapees from the Philadelphia Zoo. No, TIGER has nothing to do with the animal, or the baseball team from Detroit, or the US Census Bureau’s geographic shapefiles. Today we’ll… Continue reading...

Read more »

GoodReads: Exploratory data analysis and sentiment analysis (Part 2)

September 14, 2016
By
GoodReads: Exploratory data analysis and sentiment analysis (Part 2)

After scraping reviews from Goodreads in the first installment of this series, we are now ready to do some exploratory data analysis to get a better sense of the data we have. This will also allow us to create features that we will use in future analyses. Setup and data preparation We start by loading Related Post

Read more »

cricketr sizes up legendary All-rounders of yesteryear

September 10, 2016
By
cricketr sizes up legendary All-rounders of yesteryear

Introduction This is a post I have been wanting to write for several months, but had to put it off for one reason or another. In this post I use my R package cricketr to analyze the performance of All-rounder greats namely Kapil Dev, Ian Botham, Imran Khan and Richard Hadlee. All these players had … Continue...

Read more »

Sponsors

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)