Hi,
I would like to draw some Unicode symbols like G- and f-clefs (used in
music notation) in quartz-window. I succeed in producing sharp #,:
plot(0,0,xlim=c(0,2),ylim=c(0,2))
points(1,1, pch="\u266F",cex=2)
But for instance "b" (flat accidental) u266D and those clefs doesn't
work. G-clef is
Hi
The error does not come from ggplot but from factor function.
factor(as.name(varnames[2]))
Error in unique.default(x, nmax = nmax) :
unique() applies only to vectors
>
If you does not intend to use facet it is easier to use aes with column numbers
and annotate from names
like
ggplot(df, aes
Hi
Yes that is exactly from where I found sec_axis example.
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
scale_y_continuous(
"mpg (US)",
sec.axis = sec_axis(~ . * 1.20, name = "mpg (UK)")
)
which works if used as intended
p1<-ggplot(df,aes(x,y))+geom_point()+
scale_x_log10(
I'm learning how to use ggplot in a programming approach where I supply
variable names on the fly. Using aes_ doesn't work as I expected when x =
factor(x). Is this a bug or am I not understanding something?
# toy dataset
df <- data.frame(LogicalVar = c(FALSE, TRUE, FALSE, TRUE, FALSE, TRUE),
4 matches
Mail list logo