Out of curiosity, is there any documentation on which parameters need to be defined inside extra_params
for a ggplot2::ggproto
object?
My initial thought was that it could be the parameters defined within the argument params
of a ggplot2::layer()
, but this is not true.
If you look at the extra_params
of the GeomRibbon
, for example, I would guess that only the parameters that are not explicitly included in the respective draw_group()
function call must be included. For the GeomRibbon
example:
extra_params
includes"orientation"
, which is probably addressed byparams$extra_params
w/isetup_data()
,- whereas
extra_params
does not include"outline.type"
, which is directly handed over to the function calldraw_group()
.