| plot.HPDataFrame | R Documentation |
This function produces a plot from a HPDataFrame.
If columns x,y,z (cartesian) or theta,phi (colatitude and longitude
respectively) are present in x, then
these will be used as coordinates for plotting. Otherwise, the
HEALPix indices as in pix(x) will be used. If HEALPix
indices are used and multiple rows correspond to a single pixel
index, then beware that values may be obfuscated in the plot,
and all locations are pixel centers.
## S3 method for class 'HPDataFrame' plot( x, intensities = "I", add = FALSE, sample.size, type = "p", size = 1, box = FALSE, axes = FALSE, aspect = FALSE, col = "blue", back.col = "black", labels, hp.boundaries = 0, hpb.col = "gray", depth_test = "less", lab_depth_test = "always", ... )
x |
A HPDataFrame. |
intensities |
The column name for the data in |
add |
if TRUE then this plot will be added to any existing plot.
Note that if |
sample.size |
optionally specifies the size of a simple random sample to take before plotting. This can make the plot less computationally intensive |
type |
a single character indicating the type of item to plot. Supported types are: 'p' for points, 's' for spheres, 'l' for lines, 'h' for line segments from z = 0, and 'n' for nothing. |
size |
the size of plotted points |
box |
whether to draw a box |
axes |
whether to draw axes |
aspect |
either a logical indicating whether to adjust the aspect ratio, or a new ratio. |
col |
specify the colour(s) of the plotted points |
back.col |
optionally specifies the background colour of the plot. This argument is passed to rgl::bg3d. |
labels |
optionally specify a vector of labels to plot,
such as words or vertex indices. If this is specified then
|
hp.boundaries |
integer. If greater than 0 then HEALPix
pixel boundaries at |
hpb.col |
colour for the |
depth_test |
The depth test to be applied to the plotted points. This controls how resistant the plotted object is to being obscured. This controls how resistant the plotted |
lab_depth_test |
The |
... |
arguments passed to rgl::plot3d |
A plot of the data locations according to coordinate columns or HEALPix index
hpdf <- HPDataFrame(I = rep(0,12), nside = 1)
plot(hpdf, size = 5, col = "yellow", back.col = "black",
hp.boundaries = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.