Learn R Programming

rpms (version 0.2.1)

qtree: qtree

Description

Code to write a latex qtree plot takes a rpm frame and returns latex code to produce qtree uses linearize as a guide Produces text code to produce tree structure in tex document Requires using LaTex packages and the following commands in preamble of LaTex doc: usepackage{lscape} usepackage{tikz-qtree}

Usage

qtree(t1, title = "rpms", label = NA, caption = "", digits = 2,
  scale = 1)

Arguments

t1

rpms object created by rpms function

title

string for the top node of the tree

label

string used for labeling the tree figure

caption

string used for caption

digits

integer number of displayed digits

scale

factor for scaling size of tree

Examples

Run this code
# NOT RUN {
{
# get rpms model of mean retirement contribution by several factors
r1 <-rpms(FINDRETX~EDUC_REF+AGE_REF+BLS_URBN+REGION, data=CE,
     e_equ=FINDRETX~FINCBTAX, clusters=~CID) 

# get Latex code
qtree(r1)

}
# }

Run the code above in your browser using DataLab