Free R Help

September 3, 2015
By

(This article was first published on AriLamstein.com » R, and kindly contributed to R-bloggers)

Today I am giving away 10 sessions of free, online, one-on-one R help. My hope is to get a better understanding of how my readers use R, and the issues they face when working on their own projects. The sessions will be over the next two weeks, online and 30-60 minutes each. I just purchased Screenhero, which will allow me to screen share during the sessions.

If you would like to reserve a session then please contact me using this form and describe the project that you want help with.  It can be anything, really. But here are some niches within R that I have a lot of experience with:

  • Packages that I have created
  • Analyzing web site data using R and MySQL
  • Exploratory data analysis using ggplot2, dplyr, etc.
  • Creating apps with Shiny
  • Creating reports using RMarkdown and knitr
  • Developing your own R package
  • Working with shapefiles in R
  • Working with public data sets
  • Marketing R packages

Parting Image

I’ve included an image, plus the code to create it, in every blog post I’ve done. I’d hate to stop now just because of the free giveaway. So here’s a comparison of two ways to view the distribution  Per Capita Income in the Census Tracts of Orange County, California:

orange-county-tract-income

On the right is a boxplot of the data, which shows the distribution of the values. On the left is a choropleth, which shows us where the values are. The choropleth uses a continuous scale, which highlights outliers. Here is the code to create the map. Note that the choroplethrCaCensusTract package is on github, not CRAN.

library(choroplethrCaCensusTract)
data(df_ca_tract_demographics)
df_ca_tract_demographics$value = df_ca_tract_demographics$per_capita_income

choro = ca_tract_choropleth(df_ca_tract_demographics, 
                            legend      = "Dollars",
                            num_colors  = 1,
                            county_zoom = 6059)

library(ggplot2)
library(scales)
bp = ggplot(df_ca_tract_demographics, aes(value, value)) +
  geom_boxplot() + 
  theme(axis.text.x = element_blank()) +
  labs(x = "", y = "Dollars") +
  scale_y_continuous(labels=comma)

library(gridExtra)
grid.arrange(top = "Orange County, CalifornianCensus Tracts, Per Capita Income", 
            choro, 
            bp, 
            ncol = 2)

LEARN TO MAP CENSUS DATA
Subscribe and get my free email course: Mapping Census Data in R!

100% Privacy. We don’t spam.


The post Free R Help appeared first on AriLamstein.com.

To leave a comment for the author, please follow the link and comment on their blog: AriLamstein.com » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

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)