Hloo,
I am using facet_wrap () function and passed two columns one (code)with numeric data type and other(description )with character data type. but I got the below error and if I pass one column name I can see the graph, if I pass both I am getting error.
I would like to have both columns in my output graph
Looking forward for your help
Example code:
ggplot(df, aes(x= dates, y =numbers))+
geom_line()+
facet_wrap(~code, ~description, scales =“free”)
Error in sanitise_dim(nrow)
Language object cannot be coerced to type integer
Warnings:
Only first value of nrow will be used
Coercing now to be an integer