Learn R Programming

cwhmisc (version 6.0)

plotSymbols: Plot symbols, colours, and allow to choose

Description

A plot of symbols is generated. By clicking the mouse on a symbol the numeric codes are given in ASCII, octal, hex. Plot symbols depending on font.

Usage

plotSymbols(interactive=FALSE) availColors(indx = 0:6) plotSymbolsFonts(fn=1)

Arguments

interactive
allow choice of symbols
indx
indices of panels showing 100 colours each
fn
a font number 1 ... 5

Value

list of
ch
character value of symbol
dec
decimal value of symbol
hex
hex value of symbol
oct
octal value of symbol

Examples

Run this code
  # A first impression:
    opar <- par(mfrow=c(1,2))
  n<-1:34; plot(n,pch=n) # There is a gap between 25 and 34
  plotSymbols(TRUE)
  par(opar)

Run the code above in your browser using DataLab