[1] pry(main)> require 'alan'
LoadError: cannot load such file -- alan
from /Users/sacmac/.rbenv/versions/2.2.0-dev/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:54:in `require'
Using taxize to get a classification
Install taxize
install.packages("taxize")
Load taxize
This is a call to the GBIF API. There is an intential error in the call that gives an error message from the server
com.spatial4j.core.exception.InvalidShapeException: Invalid latitude: latitudes are range -90 to 90: provided lat: [-125.0]
In R with httr
:
library(httr)
call <- "http://api.gbif.org/v0.9/occurrence/search?geometry=POLYGON((38.4 -125, 40.9 -125, 40.9 -121.8, 38.4 -121.8, 38.4 -125))"
a <- GET(call)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
install_github("ropengov/rsunlight")
library(rsunlight)
dream <- lapply(c('D','R'), function(x) cw_timeseries(phrase='i have a dream', party=x, start_date='1996-01-01', end_date='2013-01-01', granularity='month'))
df <- merge(dream[[1]], dream[[2]], by='month', all=TRUE)
df[is.na(df)] <- 0
names(df) <- c('date','D','R')
df$date <- as.character(df$date)
library(rCharts)
m1 <- mPlot(x = "date", y = c("D", "R"), type = "Line", data = df)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Install taxize
install.packages("taxize")
Load taxize
library(taxize)
Possible unified workflow for making maps with species names or identifiers as a starting point, with map as output.
species | speciesids %>%
getdata %>% # occ(), occ_search()
cleandata %>% # fixnames(), removeimposslatlongvals(),
datatransformation %>% #
baselayer %>% # "osmaps", "", etc.
maptype %>% # "bubble", "choropleth", etc.
annotations %>% # tooltips(), symbols(), legend()
OlderNewer