@@ -133,22 +133,29 @@ class_ggplot <- S7::new_class(
133133 facet = class_facet ,
134134 layout = class_layout ,
135135 labels = class_labels ,
136+ meta = S7 :: class_list ,
136137 plot_env = S7 :: class_environment
137138 ),
138139 constructor = function (data = waiver(), layers = list (), scales = NULL ,
139140 guides = NULL , mapping = aes(), theme = NULL ,
140141 coordinates = coord_cartesian(default = TRUE ),
141142 facet = facet_null(), layout = NULL ,
142- labels = labs(), plot_env = parent.frame()) {
143+ labels = labs(), meta = list (),
144+ plot_env = parent.frame()) {
143145 S7 :: new_object(
144146 S7 :: S7_object(),
145- data = data , layers = layers ,
146- scales = scales %|| % scales_list(),
147- guides = guides %|| % guides_list(),
148- mapping = mapping , theme = theme %|| % theme(),
149- coordinates = coordinates , facet = facet ,
150- layout = layout %|| % ggproto(NULL , Layout ),
151- labels = labels , plot_env = plot_env
147+ data = data ,
148+ layers = layers ,
149+ scales = scales %|| % scales_list(),
150+ guides = guides %|| % guides_list(),
151+ mapping = mapping ,
152+ theme = theme %|| % theme(),
153+ coordinates = coordinates ,
154+ facet = facet ,
155+ layout = layout %|| % ggproto(NULL , Layout ),
156+ labels = labels ,
157+ meta = meta ,
158+ plot_env = plot_env
152159 )
153160 }
154161)
0 commit comments