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

2017-08-14 Thread PIKAL Petr
. Help <r-help@r-project.org> > Subject: [R] ggplot's aes_ doesn't work as expected for x=factor() > > 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 b

[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),