zipfslaw: Returns plot of Zip's law regression

Description Usage Arguments Value Examples

View source: R/zipfslaw.r

Description

Returns plot of Zip's law regression

Usage

1
2
zipfslaw(data, var, name, namevar, sepa, color, width, pointsize, height,
  path)

Arguments

data

data set

var

variable name string

name

lable observation

namevar

name string to equation

sepa

higher numbers reduce the frequency at which observation names apper

color

text color

width

figure width

pointsize

size data points

height

height plot

path

filepath where the output is stored (e.g. path='C:/Users/jj/R'). If missing is stored at the current loaction (getwd()). filed is saved as Zips_+namevar

Value

png file stored in path

Examples

1
2
 
zipfslaw(data=trade,var='GDP_2015_USD',name='Name_country',namevar = 'GDP',sepa=3,path='C:/Users/jj/file')

marangoisa/RegressionVisuals documentation built on Nov. 4, 2019, 5:21 p.m.