rOpenSci | Blog

All posts (Page 52 of 61)

Make your ggplots shareable, collaborative, and with D3

Editor’s note: This is a guest post by Matt Sundquist from Plot.ly. Ggplotly and Plotly’s R API let you make ggplot2 plots, add py$ggplotly(), and make your plots interactive, online, and drawn with D3. Let’s make some. 1. Getting Started and Examples Here is Fisher’s iris data. library("ggplot2") ggiris <- qplot(Petal.Width, Sepal.Length, data = iris, color = Species) print(ggiris) Let’s make it in Plotly. Install: install.packages("devtools") library("devtools") install_github("plotly", "ropensci") Load....

Topic modeling in R

Editor’s note: This is the first in a series of posts from rOpenSci’s recent hackathon. I recently had the pleasure of participating in rOpenSci’s hackathon. To be honest, I was quite nervous to work among such notables, but I immediately felt welcome thanks to a warm and personable group. Alyssa Frazee has a great post summarizing the event, so check that out if you haven’t already. Once again, many thanks to rOpenSci for making it possible!...

The ins and outs of interacting with web APIs

We’ve received a number of questions from our users about dealing with the finer details of data sources on the web. Whether you’re reading data from local storage such as a csv file, a .Rdata store, or possibly a proprietary file format, you’ve most likely run into some issues in the past. Common problems include passing incorrect paths, files being too big for memory, or requiring several packages to read files in incompatible formats....

Accessing iNaturalist data

The iNaturalist project is a really cool way to both engage people in citizen science and collect species occurrence data. The premise is pretty simple, users download an app for their smartphone, and then can easily geo reference any specimen they see, uploading it to the iNaturalist website. It let’s users turn casual observations into meaningful crowdsourced species occurrence data. They also provide a nice robust API to access almost all of their data....

Species occurrence data

UPDATE: mapping functions are in a separate package now (mapr). Examples that do mapping below have been updated. The rOpenSci projects aims to provide programmatic access to scientific data repositories on the web. A vast majority of the packages in our current suite retrieve some form of biodiversity or taxonomic data. Since several of these datasets have been georeferenced, it provides numerous opportunities for visualizing species distributions, building species distribution maps, and for using it analyses such as species distribution models....

Working together to push science forward

Happy rOpenSci users can be found at