See Chapter 24 for another example that might be a bit more intuitive. This is pretty high-level ggplot-stuff, so don’t worry about it if this seems like magic. Try ggplot(mpg, aes(x=class, y=drv)) + geom_count(aes(size=.prop., group=drv)) what happens? Factors hold categorical values, and in that context, 6 is just another value. # 3 5.255949 1 2 2 2 35 0.74468085 19 black NA NA 0.5 Line graphs can also be used with a discrete variable on the x-axis. Is there an efficient way I can do this while. I have a lot of rows, so manually doing it would be impossible unfortunately. So for example, the datapoints would be (301, -12), (33, -78), etc. # size PANEL x y group n prop shape colour fill alpha stroke I want to make a scatter graph where column 3 (Lap 1) represents the X-axis coordinate value, and column 4 (Lap 2) is the Y-axis coordinate.
0 Comments
Leave a Reply. |