Learn R Programming

stellaR (version 0.3-4)

plotAstro: Plot function for stellar objects

Description

Draw a scatter plot in the active graphics window.

Usage

plotAstro(x, y, type="l", xlab="", ylab="", xi=(max(x)-min(x))/5,
          yi=(max(y)-min(y))/5, xmt=3, ymt=3, revX=FALSE, revY=FALSE,
          xlim=NULL, ylim=NULL, cex=1.0, cex.axis=1.3, cex.lab=1.5,
          add=FALSE, …)

Arguments

x, y

the x and y arguments provide the x and y coordinates for the plot.

type

1-character string giving the type of plot desired. The following values are possible: "p" for points, "l" for lines (default value), "b" for both points and lines, "c" for empty points joined by lines, "o" for overplotted points and lines, "s" and "S" for stair steps and "h" for histogram-like vertical lines. Finally, "n" does not produce any points or lines.

xlab

a label for the x axis, default to empty string.

ylab

a label for the y axis, default to empty string.

xi

major ticks spacing for x axis.

yi

major ticks spacing for y axis.

xmt

number of minor ticks between two major ticks for x axis.

ymt

number of minor ticks between two major ticks for y axis.

revX

a logical value indicating whether the x axis should be reversed.

revY

a logical value indicating whether the y axis should be reversed.

xlim

the x limits (x1, x2) of the plot. The default value, NULL, indicates that the range of the finite values to be plotted should be used.

ylim

the y limits of the plot.

cex

the amount by which plotting text and symbols should be magnified relative to the default.

cex.axis

the magnification to be used for axis annotation relative to the current setting of cex.

cex.lab

the magnification to be used for x and y labels relative to the current setting of cex.

add

a logical value indicating whether the plot should be added to an existing device.

further arguments passed to low level plot functions.

See Also

plot.trk, plot.trkset.

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  trk <- getTrk(0.9, 0.002, 0.25, 1.7, 0)

  ### check return value from CDS
  if(!is.na(trk)[1]) plot(trk) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab