You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using your ggplotify package to make automatic exercises for students. However, when rendering a lattice graphic to a grob with as.grob(), there are many differences between the student's submission and the solution in the components childrenvp and childrenetc.
library(ggplotify)
library(lattice)
For instance, we can work on the built-in data set in R CO2:
data(CO2)
Say, we want to make a density plot of uptake for the different Treatments but with different panels for Type:
The text was updated successfully, but these errors were encountered:
kplevoet
changed the title
as.grob() on lattice graphics not comparable with all equal()
as.grob() on lattice graphics not comparable with all.equal()
Apr 27, 2021
Dear Guangchuang Yu,
I am using your ggplotify package to make automatic exercises for students. However, when rendering a lattice graphic to a grob with
as.grob()
, there are many differences between the student's submission and the solution in the componentschildrenvp
andchildren
etc.For instance, we can work on the built-in data set in R
CO2
:Say, we want to make a density plot of
uptake
for the differentTreatment
s but with different panels forType
:Suppose that the student submits the exact same solution:
When I use the
all.equal()
function to compare the grobs of both plots, there is a whole list of differences:How can this be solved?
Best,
Koen
The text was updated successfully, but these errors were encountered: