gravatar

deepansha14

Deepansha Adlakha

Recently Published

Animated Scatter plot
transition_time() Transition time creates new “layers” of the animation over a continous variable, usually time (i’ve never seen an exception to that). While this works best with geom_point, there’s many other options you can play around with. Let’s use two continuous variables to plot this. Let’s see how well the price explains the volume sold of avocados for non-organic avocados.
Animated Time-series plot
Avocado data is originally from www.kaggle.com/neuromusic/avocado-prices/data. transition_reveal() is used here. This type of transition is the simplest and acts like a piece of paper is being removed from left to right over the top of the graph to reveal the result slowly. This assumes that your x-axis is also what is included inside your statement transition_reveal(). Looking through the data, we could use AveragePrice or Total Volume on the y-axis and disaggregate by region, size of an avocado, or type (organic versus conventional).