slope2angle: Make angle data with slope data

Description Usage Arguments

Description

Make angle data with slope data

Usage

1
2
3
slope2angle(df, fit, ytransform = 0, predc, temppredc, modxc, yvar, p,
  method = "lm", xpos = NULL, vjust = NULL, digits = 3,
  facetno = NULL, add.modx.values = TRUE)

Arguments

df

A data.frame

fit

An object of class "lm" or "glm"

ytransform

Numeric. If 1, log transformation of dependent variable, If -1, exponential transformation

predc

Name of predictor variable

temppredc

Name of predictor variable in regression equation

modxc

Name of moderator variable

yvar

Name of dependent variable

p

An object of class ggplot

method

String. Choices are one of "lm" and "glm".

xpos

The relative x-axis position of labels. Should be within 0 to 1

vjust

vjust

digits

integer indicating the number of decimal places

facetno

The number of facets

add.modx.values

Whether add name of moderator variable


predict3d documentation built on Sept. 3, 2019, 5:06 p.m.