Learn the layout of panels within a plot.
This is determined by the facet, which returns a data frame, than when joined to the data to be plotted tells us which panel it should appear in, where that panel appears in the grid, and what scales it uses.
g_train_layout(panel, facet, data, plot_data)
panel |
the panel object to train |
facet |
the facetting specification |
data |
a list of data frames (one for each layer), and one for the plot |
plot_data |
the default data frame |
As well as the layout info, this function also adds empty lists in which to house the x and y scales.
an updated panel object
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.