Description Usage Arguments Details Author(s) See Also Examples

`pretty`

with no values outside of x range

1 |

`x` |
object with numeric values |

`n` |
desired number of values in |

`force` |
Must output length equal n exactly? DEFAULT: FALSE |

`...` |
all other arguments in |

calculates `pretty(x)`

, then removes the values that do not lie within
`range(x)`

.

If force=TRUE, range(x) is reduced step by step
in a while loop until the condition is met. This is useful if you want
exactly 2 labels on an `axis`

. In order not to get stuck, the
outer values are taken if there are more than n values within range(x).

Berry Boessenkool, [email protected], Aug 2014

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.