dataRetrieval
cheatsheets
Our great sponsors
dataRetrieval | cheatsheets | |
---|---|---|
4 | 60 | |
254 | 5,596 | |
1.2% | 1.5% | |
8.6 | 7.6 | |
10 days ago | 4 days ago | |
R | TeX | |
GNU General Public License v3.0 or later | Creative Commons Attribution 4.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dataRetrieval
-
[OC] U.S. Flow Conditions: August 2022
The tile map was made in R (see code) using ggplot2 and the geofacet packages. Data are from the USGS National Water Information System, accessed in R using dataRetrieval. See it on twitter
-
USGS Water Data Conversions Help
Iād look into using the R package data retrieval (https://github.com/USGS-R/dataRetrieval) for downloading data. You could download and write the data to a csv if you want excel to open it.
- Looking for packages full of datasets
-
[OC] U.S. river conditions Jan 1st - Mar 31st, 2021 at USGS streamgages, animated
The gage and spatial data were processed in R using dataRetrieval, sf, sp, rgeos, and dplyr. The animation frames were created in R using standard base R graphics, then the frames were stitched together into a video using FFmpeg. Source code can be found on our gage conditions GitHub repository: https://github.com/USGS-VIZLAB/gage-conditions-gif.
cheatsheets
-
Tools a Data Scientist should know:
If you're an R user, stringr + its cheatsheet gets you very close to remembering what to do without needing to look further!
-
JSON to PDF Magic: Harnessing LaTeX and JSON for Effortless Customization and Dynamic PDF Generation
For more information on how to use ggplot2 and create charts consult the ggplot2 official page or the ggplot2 cheat graphic.
-
Best packages to learn?
I'd suggest you have a look at cheatsheets (or download them from GitHub) if you want to get to know your way around a package or set if functions, it saves you a lot of time.
-
How do I make these shapes (pictured below) in ggplot?
You could use geom_hline and geom_vline, geom_abline, or geom_segment for this. (The ggplot cheat sheet is very useful for answering these kinds of questions, BTW.)
-
Why does my scatter plot look like this?
I can't say for sure because I don't know what your ultimate aim is for your visualization. Check out the cheat sheet for ggplot2 here.
-
Import from Excel
Finally just do your analysis. You should also should give a try and see the cheat sheet for data importing on the tidyverse package.
-
[Request] How to best visualize percentages with R?
That said, when Iām trying to come up with an interesting way to visualize data, I find the ggplot cheat sheet very helpful: https://github.com/rstudio/cheatsheets/raw/main/data-visualization-2.1.pdf
-
Need help with variables
Here's a cheat sheet: https://github.com/rstudio/cheatsheets/blob/main/strings.pdf
-
Data manipulation in R
The cheat sheet of the stringr package should give you good overview of string manipulation/ regex in R.
-
I'm trying to recreate this plot but I keep failing
I would very highly recommend that rather than trying to get started by translating an existing graph, you check out some documentation about ggplot first. If nothing else, the ggplot cheat sheet from RStudio should help explain what the component parts of the code are, and that might help you figure out what you actually want to do.
What are some alternatives?
tidytuesday - Official repo for the #tidytuesday project
reddit-top-2.5-million - This is a dataset of the all-time top 1,000 posts, from the top 2,500 subreddits by subscribers, pulled from reddit between August 15ā20, 2013.
forcats - šššš: tools for working with categorical variables (factors)
awesome-public-datasets - A topic-centric list of HQ open datasets.
mostly-adequate-guide - Mostly adequate guide to FP (in javascript)
eurostat - R tools for Eurostat data
ggplot2-book - ggplot2: elegant graphics for data analysis
rnoaa - R interface to many NOAA data APIs
mech - š¦¾ Main repository for the Mech programming language. Start here!
ggplot2 - An implementation of the Grammar of Graphics in R
reveal.js - The HTML Presentation Framework