0

I cannot get ggplot2/ggpattern bar plot change x and y axes using coord_flip command.

The aes for the ggplot command has variables for x, y, and fill.

The aes for geom_bar_pattern has a variable for pattern.

When I add the coord_flip command does run. When I try to display the object RStudio doesn't display the object, and gives me the following error text in the console:

Error in seq.default(from, to, by) : invalid '(to - from)/by'

Any advice would be greatly appreciated. Thanks.

Mel
  • 430
  • 2
  • 8
  • 2
    It would be easier to help you if you provide [a minimal reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) including the code you tried and a snippet of your data or some fake data. – stefan Apr 29 '22 at 20:13

0 Answers0