Recology, and kindly contributed to Want to share your content on R-bloggers? [This article was first published on, and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

A recent survey reported in Science (“Defeating Creationism in the Courtroom, but not in the Classroom”), suggests that high school teachers are not teaching evolution to the fullest extent, say, that grammar is being taught in the English classroom. According to survey, biology teachers in high school do not often accept the basis of their discipline, as do teachers in probably all other disciplines (languages, math, etc.). Read more here: New York Times.

I took a little time to play with the data provided online along with the Science article. The data is available on the Science website along with the article, and the dataset I read into R is unchanged from the original. The states abbreviations file is here (as a .xls). Here goes:

I only played with two survey questions: q1b (no. of hours ecology is taught per year), and q1d (no. of hours evolution is taught per year). It seems that some states that teach a lot of ecology teach a lot of evolution, but I found no correlation between the two without extreme outliers. I couldn’t help but notice my home state, TX, is near the bottom of the list on both counts – go TX! The teaching of evolution on the map produced below is less predictable than I would have though just based on my assumptions about political will in each state.

# Analyses of Conditionality Data set of all variables, except for latitude, etc. setwd("/Mac/R_stuff/Blog_etc/EvolutionTeaching/") # Set working directory library(ggplot2) # read in data, and prepare new columns survey

ggplot(survey_sum, aes(x = reorder(st_posta, mean_evol_hrs), y = mean_evol_hrs)) + geom_point() + geom_errorbar(limits_evol) + geom_text(aes(label = num_teachers), vjust = 1, hjust = -3, size = 3) + coord_flip() + labs(x = "State", y = "Mean hours of evolution taught n per year (+/- 1 se)") # map try_require("maps") states qplot(long, lat, data = survey_sum_map, group = group, fill = mean_evol_hrs, geom = "polygon")