r-graph-gallery.com provides example code for a variety of chart types, both in base R and ggplot: https://r-graph-gallery.com/ #rstats #ggplot #design

r-graph-gallery.com provides example code for a variety of chart types, both in base R and ggplot: https://r-graph-gallery.com/ #rstats #ggplot #design
Add richer tooltips to ggiraph with kableExtra and friends: https://uncharteddata.netlify.app/posts/2022-09-30-interactive-tooltip-tables/ #dataviz #ggplot #ggiraph #UI
Enrich your ggplots with extra panels along the x and y axis: https://github.com/jtlandis/ggside #ggplot #dataviz #rstats
Using fonts in R graphics can be tricky at times. {showtext} aims to make it easier: https://cran.rstudio.com/web/packages/showtext/vignettes/introduction.html #rstats #dataviz #ggplot
Find the best contrast between one color and a list of options, e.g. for labels in geom_tile: {prismatic::best_contrast()} https://emilhvitfeldt.github.io/prismatic/reference/best_contrast.html #rstats #dataviz #ggplot #colors
#dataviz #rstats
A new release, v. 1.7.4 of my {heplots} pkg just dropped to CRAN. It features a new utility `noteworthy(x,y,method)` to identify
unusual points in a 2D plot, by a variety of criteria. Working on a `stat_noteworthy()` to bring this to #ggplot,
labeling those points.
http://friendly.github.io/heplots/
I did not know about ggplot_build() before. It can come in handy in situations where you want to access computed metrics of a #ggplot. https://ggplot2.tidyverse.org/reference/ggplot_build.html. Thanks @thedatainklab for sharing. #rstats #ci
#30DayChartChallenge - Day 6: Florence Nightingale theme Using ACLED data, here's a look at fatalities (log10 scaled) of health workers in Palestine during events where they are specifically targeted or are part of a larger group of civilian victims. #rstats #dataviz #ggplot
Jazz up your ggplots:
‘Useful tricks to elevate your data viz via `ggplot` extension packages in R”
Custom themes, fonts, annotations, arrows & more
By the USGS
https://waterdata.usgs.gov/blog/ggplot-jazz/
#RStats #ggplot2 #ggplot #Dataviz
Listen, #ggplot: Iove you, I do. But 90% of the time when I want to set fill or color manually I don't want to have to look up and figure out an entire fucking palette of colors. I want 2 or 3 colors, the end. I want to specify them easily.
#ItsNotYouItsMe I realize this
I just want firebrick and navy. That's all. It always takes me 10 minutes of searching to remember that scale_color_manual exists; I always end up seeing pages for scale_color_discrete first.
r-charts.com provides example code for a variety of chart types, both in base R and ggplot: https://r-charts.com/ #rstats #ggplot #design
The truly important reason to try the #positron R/Python editor is that it can work in parallel with another R session open in #RStudio for a different project...
Also amazed by the #Pluto notebook for #Julia scientific work. One of its nice features is that the associated file is in text format and the code can be easily extracted. Not yet ready to switch from #ggplot to #VegaLite though.
https://positron.posit.co/start.html
https://plutojl.org/
#rstat
Played around with labeling a line plot. Ended up using:
{directlabels} for the two curved lines
{geomtextpath} for the horizontal line
Felt like an hour well spent.
Removed actual labels to avoid starting a totally different conversation, but a keen eye might spot the topic!
{ggdist}: Visualizations of distributions and uncertainty https://mjskay.github.io/ggdist/ #rstats #ggplot
{ggblanket}, a wrapper around #ggplot for quick, explorative plots with sensible defaults and less code. https://davidhodge931.github.io/ggblanket/ #rstats
{ggbump} creates elegant bump charts in ggplot. https://github.com/davidsjoberg/ggbump #ggplot #rstats
If you need automatic wrapping of labels in ggplot, the {ggtext} package by @clauswilke has you covered: https://wilkelab.org/ggtext/articles/theme_elements.html But make sure you also check out the rest of the functionality of the package to add markdown fromated text to plots... #ggplot #rstats #visualization
#rstats #tidyverse #ggplot it took me three days to spot this error: ggplot2:geom_col. But #rstats was pointing me to 'no visible binding for global variables: ggplot2. There is a need for #rstats to do more in terms of error definitions.
Beautiful palettes based on art for R and python: https://github.com/BlakeRMills/MetBrewer #rstats #ggplot #dataviz