Drawing facets using plotly
By its version 0.4.3, ggvis
did not support facets, but at the same time, plotly
kind did. As the current chapter had stressed, plotly
is able to coerce several ggplot
facets properly. This recipe will show you how plotly
can be used to brew facets from scratch using subplot()
function.
Drawing nice facets from scratch using plotly
is not an easy task. Also, facets breed this way can be seem more as embed graphs though. It's very code-demanding and lots of data manipulation may be required. Yet there is this possibility and some nuts and bolts to go through. Plotting separated titles is very tricky as this example shows.
This recipe will adopt the Titanic context and handle a simple comparison between child and adult survivals, similar to the plot displayed by the recipe, Creating a faceted bar graph. Even if a very simple facet is being created here, this example can be extended and generalized to create more complicated ones. Also think carefully about creating...