pl.hs {YRmisc}R Documentation

Plot histograms and scatter plots for a data frame

Description

Plotting histograms or scatter plots of your choice for a data frame. Also the function will name the graphs and number them. The purpose of the function is to save time when plotting graphs for a regression analysis or other usage. The function can plot, name and number the graphs at one step.

Usage

pl.hs(x,a,dependent,l)

Arguments

x

:a data frame

a

:the type of graph you want; a = 1 for histograms; a = 2 for scatter plots; a = 0 for both

dependent

:the dependent variable for scatterplots

l

: the beginning label number in the title (default set to 1)

Examples

pl.hs(mtcars,0,"mpg",1)

[Package YRmisc version 0.1.6 Index]