Learn R Programming

FinAna (version 0.1.1)

ploths: 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)

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

Examples

Run this code
#ploths(sp500,0,"price",0)

Run the code above in your browser using DataLab