salary = read.csv("C:\\Users\\12884742\\Downloads\\Professorial Salaries.csv")
library(ggplot2)
p = ggplot(data=salary, aes(x=Salary)) + geom_histogram()
p
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
p = ggplot(data=salary, aes(x=Salary, colour=Sex)) + geom_histogram(fill="white", alpha=0.5, position="identity")
p
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
p = ggplot(data=salary, aes(x=Rank)) + geom_bar()
p
p = ggplot(data=salary, aes(x=Rank, fill=Sex)) + geom_bar(position = position_dodge())
p
p = ggplot(data = salary, aes(x = Salary, y = Sex)) + geom_boxplot()
p
p = ggplot(data=salary, aes(x=Salary, y=Sex, fill=Rank)) + geom_boxplot()
p
p = ggplot(data=salary, aes(x=Yrs.service, y=Salary, fill=Sex, colour=Sex)) + geom_point()
p