ggplot2
An implementation of the Grammar of Graphics in R (by tidyverse)
sf
Simple Features for R (by r-spatial)
Our great sponsors
ggplot2 | sf | |
---|---|---|
62 | 17 | |
6,316 | 1,276 | |
1.2% | 1.7% | |
9.4 | 9.4 | |
8 days ago | 2 days ago | |
R | R | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
ggplot2
Posts with mentions or reviews of ggplot2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-02.
- ggplot2
- Ask HN: How do you build diagrams for the web?
-
Visualizing shapefiles in R with sf and ggplot2!
ggplot2
- Ask HN: What plotting tools should I invest in learning?
-
Relative frequency of letters in five-letter English words (Wordle aid) [OC]
I got the list of five-letter words from the words package in R, created the QWERTY keyboard grid with base R and tibble, and visualized the data with geom_tile in the ggplot2 package.
-
[OC] U.S. News & World Report Best Colleges: 2002 to 2023
Thanks, it's an interesting idea! I definitely could implement this with scale_fill_gradientn) in ggplot2.
-
Facts about Aaron Boone's Ejections as Manager
I used the ggplot2 package in R to create these figures.
-
Fueling Innovation and Collaborative Storytelling
This might not be at the top of your list, but science fiction often presents advanced data analysis and visualization technologies. Open source data analysis tools such as Python's Pandas and R's ggplot2 have revolutionized the field, making complex data manipulation and visualization accessible to all. In the science fiction novel The Martian, astronaut Mark Watney uses a variety of data analysis and visualization tools to survive on Mars. He uses Python's Pandas to clean and organize data, and he uses R's ggplot2 to create visualizations of his data. These tools allow him to make sense of the vast amounts of data and help him to make critical decisions about his survival.
-
[OC] Visualizing Financial Market Returns Across Many Asset Classes via Heatmaps
Sorry about the slow reply, but the auto-moderator seems to be deleting my comments (for some unknown reason). I will try once more: the geom_tile function in ggplot2.
-
[OC] Forbes List of Highest-Earning Musicians: 1987 to 2021
Visual cues are a much better idea, thanks! Unfortunately, I don't know how to do that in ggplot2, either (I created these figures in R).
sf
Posts with mentions or reviews of sf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-11.
-
Visualizing shapefiles in R with sf and ggplot2!
sf
- Ask HN: What are some of the most elegant codebases in your favorite language?
- Learning How to Use "Road Network" Files
-
[Q] Book suggestion for Spatial Statistics / Geostatistics
Before learning about geostatistics, do you feel comfortable working with and exploring geospatial data? If not, I'd highly recommend getting comfortable with the sf package in R. It's an implementation of the OpenGIS standard in R tidyverse. The OpenGIS standard defines specific data types and functions for geospatial data, which means that you can read e.g. PostGIS documentation and use the same functions in R.
-
People who live near other people vote for Democrats
Tools used: various packages in R (tidycensus, dplyr, ggplot2, sf)
-
Calculate Distance From a Specific Coordinate to a Shapefile?
R supports working with spatial data really well; you should look into the sf-package: https://r-spatial.github.io/sf/
-
[Q] Recommendations for Spatial Analysis Books with R
A lot of the books are out if date because geospatial has been rewritten from the ground up to be dramatically improved. I would focus on the sf package: https://r-spatial.github.io/sf/. I would also find a PostGIS book which sf shares many functions and learn to the the database when appropriate.
-
Overlay Grid on Shapefile
Are you using the sf package? I envision running a loop that creates a vector feature for each cell of the raster grid, intersects that feature with the underlying shapefile, multiplies the area of each intersected portion by its value, and assigns the raster the mean of those values. Kind of a lot to set up, but I'm not a master at this so maybe someone else knows a more straightforward method
-
is that possible to find check, a point in or out in a geojson on R
I found this: https://github.com/r-spatial/sf/issues/1595
-
Converting distance/azimuth to a real position
Now that I explained the concept, I will show some R code using the sf library to achieve this. sf stands for simple features and it's a very nice library for working with geospatial data.
What are some alternatives?
When comparing ggplot2 and sf you can also consider the following projects:
Altair - Declarative statistical visualization library for Python
tmap - R package for thematic maps
ggmap - A package for plotting maps in R with ggplot2
vega - A visualization grammar.
awesome-R - A curated list of awesome R packages, frameworks and software.
dplyr - dplyr: A grammar of data manipulation
worldfootballR - A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat and fotmob
ggfx - Filters and Shaders for 'ggplot2'
glue - Glue strings to data in R. Small, fast, dependency free interpreted string literals.
rmarkdown - Dynamic Documents for R