── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.2.0 ✔ readr 2.2.0
✔ forcats 1.0.1 ✔ stringr 1.6.0
✔ ggplot2 4.0.2 ✔ tibble 3.3.1
✔ lubridate 1.9.5 ✔ tidyr 1.3.2
✔ purrr 1.2.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(dslabs)library(highcharter)
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
Highcharts (www.highcharts.com) is a Highsoft software product which is
not free for commercial and Governmental use
Attaching package: 'highcharter'
The following object is masked from 'package:dslabs':
stars
Create a plot for percentages in applications for men and women
ggplot(research_clean, aes(x = percent_men, y = percent_women, color = discipline)) +geom_point(size =2, alpha =0.5) +geom_line(size =1) +scale_color_brewer(palette ="Set1") +labs(title ="Comparison between Men and Women Applications by Discipline", caption ="Research Funding Rates",x ="Applications by Men in Various Discplines",y ="Applications by Women in Various Disciplines" ) +theme_bw(base_family ="serif")
Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
`geom_line()`: Each group consists of only one observation.
ℹ Do you need to adjust the group aesthetic?
Create a plot for percentages in awards for men and women
ggplot(research_clean, aes(x = percent_men_award, y = percent_women_award, color = discipline)) +geom_point(size =2, alpha =0.5) +geom_line(size =1) +scale_color_brewer(palette ="Set1") +labs(title ="Comparison between Men and Women Awards by Discipline", caption ="Research Funding Rates",x ="Awards by Men in Various Discplines",y ="Awards by Women in Various Disciplines" ) +theme_bw(base_family ="serif")
`geom_line()`: Each group consists of only one observation.
ℹ Do you need to adjust the group aesthetic?
Multivariable graph using highchart to show the success rates
I have picked the research funding rates as a dataset. To create my graph, I started by loading the necessary library packages, then I cleaned my dataset by using mutate to create new variables/columns and by selecting the desired columns I want to focus on. I created four graphs. The first one was to explore the comparison of men and women in relation to applications in the different disciplines, then the comparison of men and women in relation to awards, and finally the comparison of men and women in relation in terms of success using the highcharter package.
The interesting insights I found in the visualizations is that there are more men applicants overall and the disciplines that men tend to apply and be awarded are in sciences whereas women tend to apply in disciplines such as social sciences, humanities, interdisciplinary with a fewer number in technical sciences, physics, etc. What I found most interesting is how high the success rates of women are although their applications and awards were not as high as men.