Plot.dataframe: Plot Method For Data Frames

rdrr.io Find an R package R language docs Run R in your browser Home / R Documentation / graphics / plot.dataframe: Plot Method for Data Frames plot.dataframe: Plot Method for Data Frames
plot.data.frameR Documentation

Plot Method for Data Frames

Description

plot.data.frame, a method for the plot generic. It is designed for a quick look at numeric data frames.

Usage

## S3 method for class 'data.frame' plot(x, ...)

Arguments

x

object of class data.frame.

...

further arguments to stripchart, plot.default or pairs.

Details

This is intended for data frames with numeric columns. For more than two columns it first calls data.matrix to convert the data frame to a numeric matrix and then calls pairs to produce a scatterplot matrix. This can fail and may well be inappropriate: for example numerical conversion of dates will lose their special meaning and a warning will be given.

For a two-column data frame it plots the second column against the first by the most appropriate method for the first column.

For a single numeric column it uses stripchart, and for other single-column data frames tries to find a plot method for the single column.

See Also

data.frame

Examples

plot(OrchardSprays[1], method = "jitter") plot(OrchardSprays[c(4,1)]) plot(OrchardSprays) plot(iris) plot(iris[5:4]) plot(women)

graphics

abline: Add Straight Lines to a Plot arrows: Add Arrows to a Plot assocplot: Association Plots axis: Add an Axis to a Plot axis.POSIXct: Date and Date-time Plotting Functions axTicks: Compute Axis Tickmark Locations barplot: Bar Plots box: Draw a Box around a Plot boxplot: Box Plots boxplot.matrix: Draw a Boxplot for each Column (Row) of a Matrix bxp: Draw Box Plots from Summaries cdplot: Conditional Density Plots clip: Set Clipping Region contour: Display Contours convertXY: Convert between Graphics Coordinate Systems coplot: Conditioning Plots curve: Draw Function Plots dotchart: Cleveland's Dot Plots filled.contour: Level (Contour) Plots fourfoldplot: Fourfold Plots frame: Create / Start a New Plot Frame graphics-defunct: Defunct Functions in Package 'graphics' graphics-package: The R Graphics Package grid: Add Grid to a Plot hist: Histograms hist.POSIXt: Histogram of a Date or Date-Time Object identify: Identify Points in a Scatter Plot image: Display a Color Image layout: Specifying Complex Plot Arrangements legend: Add Legends to Plots lines: Add Connected Line Segments to a Plot locator: Graphical Input matplot: Plot Columns of Matrices mosaicplot: Mosaic Plots mtext: Write Text into the Margins of a Plot pairs: Scatterplot Matrices panel.smooth: Simple Panel Plot par: Set or Query Graphical Parameters persp: Perspective Plots pie: Pie Charts plot.dataframe: Plot Method for Data Frames plot.default: The Default Scatterplot Function plot.design: Plot Univariate Effects of a Design or Model plot.factor: Plotting Factor Variables plot.formula: Formula Notation for Scatterplots plothistogram: Plot Histograms plot.raster: Plotting Raster Images plot.table: Plot Methods for 'table' Objects plot.window: Set up World Coordinates for Graphics Window plot.xy: Basic Internal Plot Function points: Add Points to a Plot polygon: Polygon Drawing polypath: Path Drawing rasterImage: Draw One or More Raster Images rect: Draw One or More Rectangles rug: Add a Rug to a Plot screen: Creating and Controlling Multiple Screens on a Single Device segments: Add Line Segments to a Plot smoothScatter: Scatterplots with Smoothed Densities Color Representation spineplot: Spine Plots and Spinograms stars: Star (Spider/Radar) Plots and Segment Diagrams stem: Stem-and-Leaf Plots stripchart: 1-D Scatter Plots strwidth: Plotting Dimensions of Character Strings and Math Expressions sunflowerplot: Produce a Sunflower Scatter Plot symbols: Draw Symbols (Circles, Squares, Stars, Thermometers,... text: Add Text to a Plot title: Plot Annotation units: Graphical Units xspline: Draw an X-spline zAxis: Generic Function to Add an Axis to a Plot What can we improve? The page or its content looks wrong I can't find what I'm looking for I have a suggestion Other Extra info (optional) Submit Improve this page

R Package Documentation

rdrr.io home R language documentation Run R code online

Browse R Packages

CRAN packages Bioconductor packages R-Forge packages GitHub packages

We want your feedback!

Note that we can't provide technical support on individual packages. You should contact the package authors for that. Tweet to @rdrrHQ GitHub issue tracker [email protected] Personal blog Embedding an R snippet on your website

Add the following code to your website.

REMOVE THIS Copy to clipboard

For more information on customizing the embed code, read Embedding Snippets.

Close

Tag » How To Plot A Dataframe In R