Data Visualization with R Ch 4

 Abinezer Abebe

STEAM 

Data Preparation CH 4



In Chapter 4 we learned about Bivariate graphs. Bi stands for two so Bivariable graphs displays information between two variables. In the first example we plotted the relationship between automobile class and drive type based on front wheel drive rear wheel drive and all wheel drive. From observing the graph we notice that all 2 seaters sport coupes are all rear wheel drive while most common car the SUV is more commonly 4 wheel drive. We adjusted the graph to a group bar look. Then applied a segmented bar chart using the position = "filled" option. Improving the graph coloring option using the factor scale_y_ labs ,scale_fill_brewer and theme_minimal functions. Next we used the geom_text function to ass labels to each bar. Scatterplots are one of the most easiest ways to display data we graphed one for the years experience vs salary for collage professors. Using the geom_point function to edit our graph. Next we need to add the line of best fit. In this dataset there is a big dip at the end of our scatterplot. In this case a quadratic or a cubic is used. Next graph we took a look at was compares relationship between time in year and life expectancy. In the bar chart for mean salary by rank we added labels on each bat to show the exact amount and display it properly. We can also show grouped plots. Also can compare numeric variables by kernel density in a single graph. In the salary distribution by rank density plot we can see the overlapping effect. Graph shows that salary increases with rank. A method to find numeric errors is to graph an error bar. Graphing an error bar from ASSProf to Profof both sex male and female. We see that the error bars overlap. We dodge the horizontal position to fix this problem. The relationship between group variable and numeric variable can be displayed using a scatterplot. Another name for a one- dimensional scatterplot is a strip plot. Strip plot might become a little complicit to read when data overprints.

















Comments

Popular posts from this blog

Computer Science Programming Language Blog 2

Computer Science Programming Language Blog 3

Computer Science Programming Blog 9