3

I've looked in an infinity of places, but none of them actually put all the positions available for these two geoms. I know there are stack (to put one on top of the other), dodge (to make little clusters with each group side-by-side), identity (to leave them one in front of the other), and fill (to make them fill the y-axis, acting as a part of a whole). But are there any others?

I was wondering if there were a place were all the available positions are, or at least, if anyone knows of other options.

This is an example of position:

[...]
geom_bar(position = "stack")
[...]

or with geom_col() (works either way).

Érico Patto
  • 1,015
  • 4
  • 18

1 Answers1

-9

If you want to get help to arguments of a function, just call the help

?geom_bar

There you will find

position:   
Position adjustment, either as a string, or the result of a call to a position adjustment function.

So, lets google something like "ggplot position adjustment function". The first result is the ggplot2 reference https://ggplot2.tidyverse.org/reference/. There you find "Position adjustment" and a list of linked position adjustments.

Jonas
  • 1,760
  • 1
  • 3
  • 12
  • 8
    This does not answer the question. Half of this answer is explaining how to pull up documentation that gives a uselessly vague description. The other half is (condescension combined with) an external link. – randy Sep 06 '21 at 20:56
  • 2
    I followed your instructions and ended up back on this page – Jeff Bezos Dec 22 '21 at 22:41