Gist 2e92f7659a37c0aad9b95cd210fa517e
✓ Published0🌍 Public
RRCura
Last edited Jul 27, 2016
Created on Jul 27, 2016
This Shiny app displays two ggplot2 scatterplots of the mtcars dataset, comparing engine cylinders and weight against miles per gallon, with point size controlled by a slider. The plot’s color scale represents weight (wt) as a continuous variable, and a shared legend is extracted and repositioned using a custom grid_arrange_shared_legend function built with grid and gridExtra. The server renders both plots inside a single output, pulling the legend from a grob via ggplotGrob. The UI uses a sidebar slider to adjust the point size interactively.
AI-generated description