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

2017-08-13 Thread PIKAL Petr
elp > 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 bug or am I no

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