Closed bshor closed 3 years ago
ggslopegraph2 mostly works, except when it is called in a function. Then it complains about a dataframe I pass to it, complaining:
Error: The first object in your list 'sg.df' does not exist. It should be a dataframe
My code is as follows:
ggslopegraph2(sg.df, times=year, measurement=comp.diffs, grouping=st, title = NULL) + theme_bw() + labs(x=NULL, y=NULL) + theme(legend.position = "none")
In the debugger I have verified that sg.df is absolutely a dataframe. What could be going on?
@ibecav fixed this in his excellent package CGPFunctions, and specifically the newggslopegraph function. Thanks to Thomas for writing the package in the first place, and to Chuck for updating it!
Thank you
ggslopegraph2 mostly works, except when it is called in a function. Then it complains about a dataframe I pass to it, complaining:
Error: The first object in your list 'sg.df' does not exist. It should be a dataframe
My code is as follows:
In the debugger I have verified that sg.df is absolutely a dataframe. What could be going on?