gravatar

suzeekoo

Sujit Kootala

Recently Published

Plot_similar to previous
Plot_flights_US_2013
Scatter plot showing multiple variables that visualize the departure delays for three major airport and the extent of delay at detination
Plot
Plot for Mileage on highways & Class of vehicle
mpg dataset
MPG Dataset visualization_2
Plot using facet_wrap
adding too many aesthetic mappings to a plot makes it cluttered and difficult to make sense of. Another way, which is particularly useful for categorical variables, is to split your plot into facets, subplots that each display one subset of the data. To facet your plot by a single variable, use facet_wrap(). The first argument of facet_wrap() is a formula3, which you create with ~ followed by a variable name. The variable that you pass to facet_wrap() should be categorical.
3 numerical variable plotting
adding too many aesthetic mappings to a plot makes it cluttered and difficult to make sense of. Another way, which is particularly useful for categorical variables, is to split your plot into facets, subplots that each display one subset of the data
Relative_frequency_plot_diamonds
The second plot, a relative frequency plot created by setting position = "fill" in the geom, is more useful for comparing species distributions across islands since it’s not affected by the unequal numbers of penguins. In creating these bar charts, we map the variable that will be separated into bars to the x aesthetic, and the variable that will change the colors inside the bars to the fill aesthetic.
Bar_Plot_showing distribution of color vs cut
Database = diamonds library = ggplot2
Box_Plot for diamond cut vs price
using diamonds database and ggplot2 library
Box_Plot for diamond clarity vs price
diamonds dataset and ggplot2 library
density curve plot to ascertain the spread of quality and overlaps in each category of diamonds
to ascertain the shape of the individual distributions
Histogram plot for carat bins
diamonds dataset in ggplot
Plot_histogram_bin_width_by_price
diamonds dataset
Plot1.4.3.2
histogram density plot for carats variable in diamond dataset
Plot_1.4.3
diamonds dataset - histogram bins
Plot_1.4
How are the following two plots different? Which aesthetic, color or fill, is more useful for changing the color of bars?
Plot4q9
Run this code in your head and predict what the output will look like. Then, run the code in R and check your predictions.
Plot4q8
Recreate the following visualization. What aesthetic should bill_depth_mm be mapped to? And should it be mapped at the global level or at the geom level?
Plot4-species vs. bill_depth_mm
Q.4 What happens if you make a scatterplot of species vs. bill_depth_mm? What might be a better choice of geom?
Plot-Bill Depth and Bill Length for Penguins dataset
Palmer penguins dataset Q3. Make a scatterplot of bill_depth_mm vs. bill_length_mm. That is, make a scatterplot with bill_depth_mm on the y-axis and bill_length_mm on the x-axis. Describe the relationship between these two variables.
GGPLOT2_Sample_Plot_1
Based on the palmerpenguin library dataset