ploths {FinAna}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

ploths(x,a,dependent,c,l)

Arguments

x

:a dataframe

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

c

:is there dummy variable in the dataframe; c = 0 when there is none; c = 1 when there is

l

: number of labeling starts at (default = 1)

Examples

#ploths(sp500,0,"price",0,20)

[Package FinAna version 0.1.2 Index]