Monthly Archives: April 2015

Stochastic SIR Epidemiological Compartment Model

April 24, 2015
By
Stochastic SIR Epidemiological Compartment Model

Introduction This post is a simple introduction to Rcpp for disease ecologists, epidemiologists, or dynamical systems modelers - the sorts of folks who will benefit from a simple but fully-working example. My intent is to provide a complete, self-contained introduction to modeling with Rcpp. My hope is that this model can be easily modified to run any dynamical simulation that has dependence on the...

Read more »

Dynamic analysis on outliers

April 24, 2015
By
Dynamic analysis on outliers

Treating outliers Introduction Outliers are the extreme values that a variable has, depending on the model or requirement, it could be necessary to treat them, either transforming or deleting. Variable “Income” distribution This is going to be our main variable in this example, which represents customer's income in $. We can observe how there are a few cases with very high...

Read more »

Back to basics: High quality plots using base R graphics

April 24, 2015
By

Today at the Davis R Users’ Group, Michael Koontz gave tour de force lesson in using R’s base graphics capabilities to plot data. Here’s the video: Get Michael’s excellent annotated script, which covers much more than we got to during our tutorial, here.

Read more »

Dashboards in R with Shiny & Plotly

April 24, 2015
By
Dashboards in R with Shiny & Plotly

Shiny is an R application that allows users to build interactive web applications easily in R! Shiny apps involve two main components: a ui (user interface) script and a server script. The ui script controls the layout of the app and the server script controls what the app does. In other words, the ui script creates

Read more »

Blue period: Analyzing the color of paintings with R

April 24, 2015
By
Blue period: Analyzing the color of paintings with R

While movies have been getting more orange with time, painting have been going the other direction. Paintings today are generally more blue than they were a few hundred years ago. The image above shows the color spectrum of almost 100,000 paintings created since 1800. Martin Bellander used R to create the image, by scraping images from the BBC YourPaintings...

Read more »

Data Mining the California Solar Statistics with R: Part I

April 24, 2015
By
Data Mining the California Solar Statistics with R: Part I

Data Mining the California Solar Statistics with R: Part I Intro Today I’m taking a look at the data set available from California Solar Statistics availalbe from https://www.californiasolarstatistics.ca.gov/. This data set lists all the applications for state incentives for both residential and commercial systems, it contains information about the PV (Photovoltaic) system size, location, cost,

Read more »

Introducing shinyjs: perform common JavaScript operations in Shiny apps using plain R code

April 23, 2015
By
Introducing shinyjs: perform common JavaScript operations in Shiny apps using plain R code

shinyjs is my second R package that managed to find its way past the CRAN review process. It lets you perform common useful JavaScript operations in Shiny applications without having to know any JavaScript. Demos You can check out a demo Shiny app that lets you play around with some of the functionality that shinyjs makes available, or have a look at a very basic...

Read more »

scale acceleration

April 23, 2015
By
scale acceleration

Kate Lee pointed me to a rather surprising inefficiency in matlab, exploited in Sylvia Früwirth-Schnatter’s bayesf package: running a gamma simulation by rgamma(n,a,b) takes longer and sometimes much longer than rgamma(n,a,1)/b, the latter taking advantage of the scale nature of b. I wanted to check on my own whether or not R faced the same

Read more »

Course Profiles in ggplot2

April 23, 2015
By
Course Profiles in ggplot2

Over on my other blog, Droppin’ The Hammer… where I journal my ultra running experience, I featured a novel ggplot2 plot for highlight elevation gain and loss on running race course profiles. If you’ve never run a particular race you...

Read more »

The new science journalism and open science

April 23, 2015
By

by Joseph Rickert The New York Times is quietly changing the practice of science journalism. The Tuesday April 21, 2015 article: Ebola Lying in Wait, reports on "A growing body of scientific clues - some ambiguous, other substantive" that the Ebola virus may have lain dormant in West African rain forest for years before igniting last year's outbreak. In...

Read more »

Search R-bloggers

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)