Open ttzhou opened 4 years ago
mtcars %>% g2r::g2(asp(x = wt, y = mpg)) %>% g2r::fig_point() %>% g2r::conf_font("Arial")
looks identical to
mtcars %>% g2r::g2(asp(x = wt, y = mpg)) %>% g2r::fig_point() %>% g2r::conf_font("Roboto")
Couldn't figure out why - g2r.js sets G2.Global.fontFamily = x.font, and checking the str indeed shows that x$font is the correct setting. Maybe js side?
g2r.js
G2.Global.fontFamily = x.font
str
x$font
js
looks identical to
Couldn't figure out why -
g2r.js
setsG2.Global.fontFamily = x.font
, and checking thestr
indeed shows thatx$font
is the correct setting. Maybejs
side?