xyplot.hist: An xyplot with histograms An xyplot with a difference - also...

Description Usage Arguments Author(s)

Description

This plot makes a normal xy plot, but also has a horizontal, and a vertical histogram, on the top and side of the plot. Original code from Addicted to R: http://wiki.r-project.org/rwiki/doku.php?id=graph_gallery:graph78

Usage

1
2
3
4
5
6
7
  xyplot.hist(x, y, breaks = 50, xlab = "", ylab = "",
    main = "", symmetrical = "", axes = TRUE,
    xhist.plot = TRUE, yhist.plot = TRUE,
    xhist.axis = FALSE, yhist.axis = FALSE,
    xhist.lab = "Frequency", yhist.lab = "Frequency",
    hist.col = "white", xhist.col = hist.col,
    yhist.col = hist.col, ...)

Arguments

x

vectors of numbers, can contain NA's

y

vectors of numbers, can contain NA's

breaks

The number of breaks in the histograms. see ?hist

xlab

see ?par. main will be plotted in the top centre of the plot

ylab

see ?par. main will be plotted in the top centre of the plot

main

see ?par. main will be plotted in the top centre of the plot

symmetrical

make the axes symmetrical about zero. allowed values include “” (no change), “x”, make x-axis symmetrical “y”, make y-axis symmetrical “xy”, make both x and y-axes symmetrical “both”, to make the plot square and symmetrical

axes

logical: plot the x=0, y=0 axes as dashed lines

xhist.plot

plot histograms of data on the x or yaxis? If both are FALSE, then just use xyplot.

yhist.plot

plot histograms of data on the x or yaxis? If both are FALSE, then just use xyplot.

xhist.axis

logical: add an axis for the x-histogram

yhist.axis

logical: add an axis for the y-histogram

hist.col

the colour for the histograms

xhist.col

the colour for the histograms

yhist.col

the colour for the histograms

...

further arguments to xyplot.

Author(s)

Mark Cowley, 2008-09-02


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