dotplot-methods: dotplot methods

Description Arguments Value Author(s) Examples

Description

The S3 method plot is undoubtedly a workhorse. It sometimes makes dotplots, barplots, boxplots... This S4 method makes it explicit that you will get a dotplot, either 1D, or 2D. It can then be overridden when appropriate to define dotplots for new data types, like dotplot.ExpressionSet from my microarrays library.

Arguments

x

an object to dotplot

y

an optional object to dotplot

sort

logical: sort 'x'. ignored for 2D plots.

Value

nothing. makes a plot

Author(s)

Mark Cowley

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 1D
dotplot(1:10)
dotplot(rnorm(100))
## dotplot(letters)
# 2D
dotplot(1:100, sqrt(1:100))
a <- 1:10; names(a) <- letters[1:10]
b <- 6:15; names(b) <- letters[6:15]
dotplot(a,b)
c <- 6:16; names(c) <- letters[6:16]
dotplot(a,c)
## dotplot(letters, 1:10)
## dotplot(1:10, letters)

drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.