box
Write reusable, composable and modular R code (by klmr)
ggplot2
An implementation of the Grammar of Graphics in R (by tidyverse)
Our great sponsors
box | ggplot2 | |
---|---|---|
31 | 62 | |
809 | 6,311 | |
- | 1.1% | |
7.8 | 9.4 | |
9 days ago | 7 days ago | |
R | R | |
MIT License | 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.
box
Posts with mentions or reviews of box.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-04.
- Trying to Replicate Excel financial Functions
-
Can someone explain how R project are organized and deployed?
As for organising code within a project, as mentioned packages really don’t allow this beyond collation order. The best solution in this space is the ‘box’ package which implements a fully-featured module system for R. ‘box’ notably gets used by some folks to implement large-scale Shiny applications; if this is what you’re after, I would recommend the ‘rhino’ framework, which builds upon Siny and ‘box’.
-
Good practice with long R scripts - any examples?
You can write amazing, clean, modular code with the box package.
-
Does anyone feel like R is actually vastly worse for dependency/environment management than Python?
I would look into box https://github.com/klmr/box if you haven’t heard of it already
-
"Managing large codebases in R" webinar (Oct. 6, 2022)
Shapeless plug: check out the already mentioned ‘box’, I think it’s strictly superior to ‘import’ (but I’m biased).
-
Get tsarted wiht R using this Cheat Sheet - DataCamp
By contrast, R code doesn’t need to change the working directory at all! Having to do so hides other flaws in the code. For instance, when trying to load code or data, use the tools provided by R. That is, write packages and use system.file or, when not writing packages, use ‘box’.
-
Which R function do you find somewhat tricky?
‘box’ fixes that.
-
Restructuring a large R project. Need advice on how to wire up file paths and associated objects.
I think your use-case is best addressed by the ‘targets’ package. But I would also recommend checking out the ‘box’ package for a more general way of structuring R projects in modules which isn’t supported well natively by R (disclaimer: I wrote that package). Writing R code as modules fundamentally side-steps the issue of having to deal with absolute paths. Instead, all code and data are either contained in the module or can be accessed relative to the working directory.
-
[Q] Loading `dplyr` packages within a function but not outside of it
However, using ‘box’, as recommended in another comment, allows you to achieve the same effect with less (and cleaner) code, by declaring your imports locally with the box::use function.
-
Is it possible to see what functions are used from what library?
If you're writing you're own code you can use packageName::functionName(), or the box package. Which is definitely useful on larger codebases.
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).
What are some alternatives?
When comparing box and ggplot2 you can also consider the following projects:
renv - renv: Project environments for R.
Altair - Declarative statistical visualization library for Python
rnim - A bridge between R and Nim
tmap - R package for thematic maps
tidytable - Tidy interface to 'data.table'
vega - A visualization grammar.
sys - Easily create reusable command line scripts with R
dplyr - dplyr: A grammar of data manipulation
workflowr - Organize your project into a research website
worldfootballR - A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat and fotmob
lintr - Static Code Analysis for R
glue - Glue strings to data in R. Small, fast, dependency free interpreted string literals.