ggCLE: Draw a cleveland dot plot

Description Usage Arguments Examples

View source: R/ggCLE.R

Description

Draw a cleveland dot plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

1
2
3
4
5
6
7
8
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)
}

cardiomoon/ggiraphExtra documentation built on Oct. 9, 2020, 4:16 a.m.