Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205491

in R, please help condensing x axis in ggplot2, binary x value

$
0
0

looking at some nfl data.. I am looking to condense my x axis.. my x value is binary.. so I only want to see 0 or 1 yet values in between 0 and 1 are appearing.. so I am seeing .25, .50, .75 and it is just taking up space.. how can I eliminate these unwanted values? thank you

library(ggplot2)
ggplot(gtgruns, aes(x=shotgun, y=epa)) +
  geom_point(alpha = 0.4) + 
  theme_classic()

shows unnecessary ".25, .50, .75" x axis values


Viewing all articles
Browse latest Browse all 205491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>