Skills chart using Gplot2 with R

[This article was first published on R | TypeThePipe, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

R ggplot2 plot showing our skills info in and orange palette. X axis for hours spent and y-axis for skills' name.

In this TypeThePipe tip we are bringing you a skills plot template using R and ggplot2. Maybe its a good idea to evolve this plot and add an unique skill plot to your CV. And it’s only a few lines of R code!

You can see the code below 🙂

library(ggplot2)
# library(plotly)
library(tibble)
library(dplyr)

skills <- tribble(
 ~ Skill, ~ Hours, ~ Class,
 "AWS", 500, "BigData",
 "Python", 8000, "Language",
 "Spark", 4000, "BigData",
 "R", 9000, "Language",
 "Git", 2000, "Tools",
 "Jira", 2000, "Tools",
 "Forecasting", 5000, "Objetive",
 "Segmentation", 2000, "Objetive",
 "Computer Vision", 600, "Objetive",
 "SQL", 4500, "Language",
 "IBM Data Stage & SPSS", 1200, "Tools",
 "Shiny R", 1500, "Visualization",
 "Tableau", 1000, "Visualization",
 "Spotfire", 500, "Visualization"
) 
# plotly(
ggplot(data=skills,aes(x=reorder(Skill,-desc(Hours)), y= Hours, fill=Class, label=paste0(Hours," h"))) + 
 geom_bar(stat = "identity", colour="black") +
 coord_flip() +
 labs(x=" ", y="Hours", fill=" ") +
 theme_minimal() +
 scale_fill_brewer(palette = "YlOrBr",direction = -1) +
 geom_label(show_guide = F, aes(y=400)) # Use show_guide despite the warning

Tune up your R visualizations on TypeThePipe

To leave a comment for the author, please follow the link and comment on their blog: R | TypeThePipe.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)