ggCLE {ggiraphExtra}R Documentation

Draw a cleveland dot plot

Description

Draw a cleveland dot plot

Usage

ggCLE(
  data,
  mapping,
  reorderByX = TRUE,
  no = NULL,
  start = 0.99,
  interactive = FALSE,
  decreasing = TRUE,
  use.label = TRUE,
  use.labels = TRUE,
  ...
)

Arguments

data

a data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

reorderByX

If true, the data is reordered by x variable

no

Number of data be drawn in plot

start

start point of x axis as ratio to minimum x variable

interactive

A logical value. If TRUE, an interactive plot will be returned

decreasing

Should the sort order be increasing or decreasing?

use.label

Logical. Whether or not use column label in case of labelled data

use.labels

Logical. Whether or not use value labels in case of labelled data

...

other arguments passed on to geom_point_interactive

Examples

require(ggplot2)
require(ggiraph)
ggCLE(data=mtcars,aes(x=mpg),decreasing=FALSE,interactive=TRUE)
ggCLE(data=mtcars,aes(x=mpg,color=am,facet=am),interactive=TRUE)
if(requireNamespace("gcookbook",quietly=TRUE)){
   require(gcookbook)
   ggCLE(data=tophitters2001,aes(x=avg,y=name,color=lg,facet=lg),no=30,interactive=TRUE)
}

[Package ggiraphExtra version 0.3.0 Index]