Borrowing the sizer and opacityer objects created in Section 24.4 and using the object you just created
Fantastic news! We've Found the answer you've been seeking!
Question:
Finally, re-create the interactive scatterplot of calories on protein exactly as in (d), but this time additionally assigning shaper from (e) to the shape modifier in your call to ggvis. To prevent the legends for the two sets of radio buttons from overlapping each other, you need to add the following pipes to your code:
The first simply moves the legend for the shape modifier vertically downward, and the second eliminates the slight “animation delay” that occurs by default when switching between options in the interactive graphic. Once more, use additional calls to add_axis and add_legend to clarify or suppress axis and legend titles.
Related Book For
Posted Date: