Recent content by helicon

  1. H

    inverting color palete used in a plot in R base

    The help page ?`plot,Raster,ANY-method` states that the default color palette is rev(terrain.colors(255)) so you can invert it by dropping the rev command. plot(r, col = terrain.colors(255))
  2. H

    Read earthquake dataset into R and map it with animation

    It isn't a table but fixed width data embedded in the page. You can read it in using the following: library(rvest) widths <- c(11,10,10,10,14,5,5,5,48,100) dat <- "" %>% read_html %>% html_nodes("pre") %>% html_text %>%...