Circlize circular barplot as in ggplot - r

I am trying to duplicate a circular barplot made with ggplot2 into ciclize as follows:
While I can bring it into a scatterplot and add a regression:
The visualization as barplot interests me more. However I have not found any similar example in the circlize guide or any example. I have tooled with the circos.polygon however drawing each bar seems not the best solution. Thus, I wonder if someone has toyed with this already, while no specific subject existis in stackoverflow.

I contacted Zuguang Gu on twitter and he was kind enough to make a wraper function for circlize. He posted the details here:
https://jokergoo.github.io/circlize/reference/circos.barplot.html
I really like ggplot2 but the level of detail and easy handling for circular barplots made me look for an answer using circlize.
Thanks to all that answered.

Related

Is it possible to use hatching in geom_bar

I came across this post: Texture in barplot for 7 bars in R? which suggests that you can use hatching in R, and I've been looking for this type of thing for a long time... However, I then realised that this post is about barplot, rather than geom_bar (or any ggplot2 function), and that any attempt to use "density" as a parameter in geom_bar just results in the parameter being ignored.
So my question is, is it possible to use the hatching density in ggplot? I know there are things like geom_patterns, but I'm not able adapt it to my needs, I just want to use hatching because I have too many colours to use distinguishible shades. And if so, how do I implement it? Whenever I google density geom_bar it shows me density plots which is not what I'm after so I'm turning to this forum for help...
Thanks
EDIT: I figured out ggpattern! I'm pretty sure I tried it before but maybe I wasn't as determined (read: desperate). so thanks for the suggestion

Gradient colors on axis in R

I'm currently trying to reproduce some of our graphs in R.
At the moment we use Excel to produce our graphs and 1 of the options in Excel is the use of gradient colors on the axis. I have added some pictures as an example.
My question is if a similar option is available in R (in ggplot). I can't find any useful information about this issue on the web. Thanks in advance for any response!
Greetings, Erik
!https://ibb.co/drRd8x
!https://ibb.co/jvPbvc

Using ggplot to plot a customizable table of data

This idea has been spurred by this work at Five Thirty Eight.
I'm not entirely sure that they used R, but the chart appears in a similar fashion to their other data viz. I looked around here, but couldn't find anything directly relating to this.
Is this kind of plot possible using ggplot?
Thanks for any and all help!
They do use R but their ggplot2 theme is semi-proprietary and they don't say what they use. People have attempted to recreate the theme
https://github.com/jrnold/ggthemes
After the graphs are created it then goes through an illustrative step to bring graphs together and make them more of a story.

Plot 3D graphs in R-studio

Sorry for the question, but I have a variable that I would like to plot like this:
I am a newby on R, so I am having some difficulties. I appreciate any kind of help.
Thanks!
Since you're looking to plot what appears to be a 3d surface, I'd suggest starting with the persp function, from the graphics package. This blog post (http://www.r-bloggers.com/3d-plots-in-r/) gives a good treatment of several options for 3D plotting:
the generic function persp() in the base graphics package draws perspective plots of a surface over the x–y plane. Typing demo(persp) at the console will give you an idea of what this function can do.
And running demo(persp) gives you a number of examples, including this one:
There are also some more suggestions for going further:
The plot3D package from Karline Soetaert builds on on persp()to provide functions for both 2D and 3D plotting. [...] Load the package and type the following commands at the console: example(persp3D), example(surf3D) and example(scatter3D) to see examples of 3D surface and scatter plots.
As a side note, #rawr's comment is spot on - I found all this in less than a minute, using two google searches - one of which was the title of your post. I'm putting this answer up anyway, since StackOverflow posts frequently become the top google result for many topics. But the best advice I can give you going forward is that R is one of the most aggressively well-documented languages out there, both in terms of formal and informal documentation, and you can find a lot just by googling what you want to do.

What is the Name of this Visualization?

The RStudio website has a very interesting visualization as shown below:
https://gallery.shinyapps.io/TSupplyDemand/
Unfortunately, I cannot seem to pin down the source code, package, or even more simply, the name of this visualization.
I would greatly appreciate it if anyone was able to point my research in the right direction. I suspect that knowing the name of the visualization will help me resolve the remaining questions quite quickly.
It's a Sankey Diagram, where the width of the edges is proportional to the amount transferred between nodes.
https://en.wikipedia.org/wiki/Sankey_diagram
This answer on SO suggests that rCharts can be used to create such plots.

Resources