Handmade tutorials to help you master ggplot2. Each tutorial provides a step-by-step guide that teaches you how to create visualizations that go beyond the basics of ggplot2.
Dear sir, Thankyou so much, your videos are very helpful to learn data visualization in R. NEED HELP: I want to make a graph in which I want to show, percent of income spent and saved which totals to hundred percent for males and females by country. I've tried several ways but am not able to do that. Kindly help. For example; suppose there are five countries. In each country males and females spend some percent of their income and save the remaining. I want to show what percentage of income is spent and what is saved for males and females for each country. So, as per my requirement, the countries will be on the X axis and each country will have two stacked bars; one for male and other for females. Please help me how we can do that I R software. Kindly make a video and upload it. I've searched many videos on RU-vid but didn't find any.
re: legend vertical spacing. The comments on substack mentioned a code update since your tutorial and to use this example (worked for me with .y): p + theme( legend.key.spacing.x = unit(1, "cm"), legend.key.spacing.y = unit(1, "cm") )
Hi, I tried to get the graph by pasting the commands but got the following error message: Error in get(as.character(FUN), mode = "function", envir = envir) : object 'draw_key_polygon3' of mode 'function' was not found Can anyone help me?
Thank you for this suppose you got sales data. you got items sold, their quantity and value if I were in excel I would make a bar plot for the value, i.e. sales value, and volume/quantity of items sold as line chart combined with the previous but the latter would use a secondary axis now, I know such a thing is possible by mapping different data to different geoms but I am facing an issue visualising the quantity on a line chart any ideas? x-axis would have categorical labels and the other numeric
Aboslute genius at play! I've been struggling for the past couple of hours with "scale_color_manual" and "scale_fill_manual", but this is so much parsimonious! You have my subscription good sir.
One question though, if I wanted to add a legend because I have to different kind of points (one filled with blue, other filled with black), how could I add it? Thanks!
Many thanks indeed for this tutorial. I would like to know how such an APA bar graph can be made edittable instead of being saved as unedittable png or jpeg picture. Thanks once again. Appreciation from Uganda