forcats
ggplot2-book
forcats | ggplot2-book | |
---|---|---|
4 | 31 | |
553 | 1,583 | |
-0.2% | 0.6% | |
1.7 | 0.0 | |
5 months ago | 5 months ago | |
R | Perl | |
GNU General Public License v3.0 or later | - |
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.
forcats
-
Using scale_x_discrete on graphs
Have a look at the forcats package https://forcats.tidyverse.org/
-
[Q] 'pivot_longer' applied to an object of class "character"
Such a function wouldn't add anything that factor() or as.factor() don't already do, but the forcats tidyverse package does make it easier to work with factor variables afterwards: https://forcats.tidyverse.org/
-
This chart has the days of the week on the x-axis, but they are all over the place, starting with Sunday and then going to Wednesday. My table has the correct sequence of days. So why is this happening to me? :\
Turn weekdays to factors to have some control over order. https://forcats.tidyverse.org/ https://r4ds.had.co.nz/factors.html#modifying-factor-order
-
Frustration: One Year with R
This was fun to play around with. I made some very minor changes and posted at https://gist.github.com/hadley/d54895557fbb0fe0402d2277b9011....
It revealed to me that there's a buglet in `forcats::last()` (https://github.com/tidyverse/forcats/issues/303) and made me wonder if `pivot_longer()` should be able to rename the columns as you pivot them (https://github.com/tidyverse/tidyr/issues/1338)
ggplot2-book
-
Does anyone else absolutely love plotting their data
I also only recently started using ggplot after doing most of my graphs with base R‘s plot() function. I started by reading ggplot2 by Hadley Wickham which is also available as a free ebook. Reading the first few chapters is enough to enable you to plot many basic plots. I can’t imagine going back to any other visualization tool ever again. Absolutely love the freedom ggplot gives you.
-
I am starting to learn R and I love it. I would like to learn at least 1 another simmilar language. Which one(s) should I learn?
His ggplot book will teach you all you need to know about R plotting, and is probably right at your current level. It is likewise pretty great, ggplot
-
What are your favorite softwares for data visualization?
The OG book is still the best in my opinion! https://ggplot2-book.org/
- Data analysis skills before/in lieu of master’s program
-
How can I do this graph?
You could use base R, see ?plot but a lot of people would use ggplot2. However, looking at your data it won’t look very good because there’s going to be very few points per country.
-
Can someone explain how R project are organized and deployed?
If you included DESCRIPTION to your repository (like in ggplot2-book - https://github.com/hadley/ggplot2-book/blob/master/DESCRIPTION ) devtools::install_deps() and renv::install() will install dependencies listed there as would pip with requirements.txt , you can trigger this from your R script, from command line or from whatever deployment / automation tool you are using.
-
[Q] is majoring in stats a bad choice if i suck at programming?
Chapters 1-8 of https://adv-r.hadley.nz/, https://r4ds.had.co.nz/ , and https://ggplot2-book.org/ were covered in my statistical computing courses. I don't think it gets much more advanced than that at the undergrad level.
- How to add color?
-
How can I make a line graph!?
You can check out more about Ggplot2 here: https://ggplot2-book.org/
-
Ask HN: How would you spatialize higher dimensional data?
* "ggplot2: Elegant graphics for data analysis" : https://ggplot2-book.org/
What are some alternatives?
cheatsheets - Posit Cheat Sheets - Can also be found at https://posit.co/resources/cheatsheets/.
r4ds - R for data science: a book
desctable - An R package to produce descriptive and comparative tables
dtplyr - Data table backend for dplyr
mech - 🦾 Mech is a programming language for building data-driven systems like robots, games, and interfaces. Start here!
handson-ml2 - A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, Keras and TensorFlow 2.
tidyr - Tidy Messy Data
Frustration-One-Year-With-R - An extremely long review of R.