2024-02-09
Ggplot I illustrates a boxplot of plant weight by fertilizer type.The x-axis represents the different types of fertilizers used in the experiment.The y-axis represents the weight of the plants, and each box in the plot represents the distribution of plant weights for a particular fertilizer type.The horizontal line inside each box represents the median plant weight, while the box itself spans the interquartile range (IQR) of the data.The whiskers extend to the minimum and maximum values within 1.5 times the interquartile range from the first and third quartiles, respectively, and other points outside this range are considered outliers.
The scatter plot illustrates the relationship between plant weight and fertilizer type.Here, each point represents an individual plant in the data set, where the x axis represents the different fertilizer types, and the y-axis represents the weight of the plants. By examining the distribution of points across different fertilizer types, we can assess any potential differences in plant weight among the groups.
The 3D scatter plot illustrates the relationship between plant weight and fertilizer type. The x-axis represents the weight of the plants, and the y-axis represents the different fertilizer types. Each point in the plot represents an individual plant in the data set.The color of each point indicates the weight of the plant, with lighter colors indicating lower weights and darker colors indicating higher weights.
\(A= \pi + r^2\)
ggplot(data, aes(x = group, y = weight, color = factor(group))) +
geom_point(position = position_jitter(width = 0.4), alpha = .9) +
scale_color_brewer(palette = “Pastel1”) +
labs(title = “Scatter Plot of Plant Weight VS Fertilizer Type”, x = “Fertilizer Type”, y = “Plant Weight”)