- 2194 observations.
- 21 variables.
- Data : Cetacean Data
- Read : The Pudding Article
- About : Big Fish in the Sea.
December 17, 2018
#load the data SeaCreature <- read_csv("allCetaceanData.csv", col_types = cols(X1 = col_skip())) attach(SeaCreature) # loading theme ggthemr("flat dark")
Plot1<-ggplot(SeaCreature,aes(x=species,y=birthYear,color=sex))+ geom_jitter()+ coord_flip()+ theme(axis.text.x =element_text(angle = 90, hjust = 1))+ ggtitle("Species and Sex over their BirthYear")+ ylab("Birth Year")+ xlab("Species")+ legend_bottom() ggsave("Plot_1.png",width = 12,height = 12)
Plot2<-ggplot(SeaCreature,aes(x=str_wrap(status,8), y=birthYear,color=sex))+ geom_jitter()+ coord_flip()+ theme(axis.text.x =element_text(angle = 90, hjust = 1))+ ggtitle("Status and Sex over their BirthYear")+ ylab("Birth Year")+ xlab("Status")+ legend_bottom() ggsave("Plot_2.png",width = 12,height = 12)
Plot3<-ggplot(SeaCreature,aes(x=str_wrap(status,8), y=str_wrap(species,12),color=sex))+ geom_jitter()+ coord_flip()+ theme(axis.text.x =element_text(angle = 90, hjust = 1))+ ggtitle("Species and Sex over their status")+ ylab("Species")+ xlab("Status")+ legend_bottom() ggsave("Plot_3.png",width = 14,height = 12)
Plot4<-ggplot(SeaCreature,aes(x=acquisition, y=birthYear,color=sex))+ geom_jitter()+ theme(axis.text.x =element_text(angle = 90, hjust = 1))+ ggtitle("Acquisitioned ones with their and BirthYear")+ ylab("Birth Year")+ xlab("Acquisition")+ legend_bottom() ggsave("Plot_4.png",width = 12,height = 12)
Plot5<-ggplot(SeaCreature,aes(x=str_wrap(species,12), y=currently,color=sex))+ geom_jitter()+ theme(axis.text.x =element_text(angle = 90, hjust = 1))+ ggtitle("Species and Sex over their Current Location")+ ylab("Current Location")+ xlab("Species")+ legend_bottom() ggsave("Plot_5.png",width = 14,height = 14)
Plot6<-ggplot(SeaCreature,aes(x=status,y=acquisition,color=sex))+ geom_jitter()+ ggtitle("Acquisitioned with Sex and Status")+ xlab("Status")+ ylab("Acquisition")+ legend_bottom() ggsave("Plot_6.png",width = 12,height = 12)