[R] Some Unicode symbols are missing

2017-08-13 Thread Atte Tenkanen
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

Re: [R] ggplot's aes_ doesn't work as expected for x=factor()

2017-08-13 Thread PIKAL Petr
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

Re: [R] Annotation Ticks on the axis

2017-08-13 Thread PIKAL Petr
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(

[R] ggplot's aes_ doesn't work as expected for x=factor()

2017-08-13 Thread Waichler, Scott R
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),