Ggplot(df, aes(x = reorder(rowname, mpg), y = mpg)) + Margin.params = list(fill = "Species", color = "black", size = 0.2) Iris, x = "Sepal.Length", y = "Sepal.Width",Ĭolor = "Species", size = 3, alpha = 0.6, # Grouped Scatter plot with marginal density plots Scale_size(range = c(0.5, 12)) # Adjust the range of points size Geom_point(aes(size = qsec), alpha = 0.5) + In a bubble chart, points size is controlled by a continuous variable, here qsec. Wherever there is more points overlap, the size of the circle gets bigger. The overlapping points are randomly jittered around their original position based on a threshold controlled by the width argument in the function `geom_jitter()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |