11
22
3- # ' The theme function for a basic b/w theme
3+ # ' A theme function for a basic b/w theme
44# '
55# ' @param plot.title.fontsize Title font size
66# ' @param sm.node.label.fontsize Font size for constructs
1212# ' @export
1313# '
1414# @examples
15- seminr_theme_default <- function (plot.title.fontsize = 24 ,
15+ seminr_theme_old <- function (plot.title.fontsize = 24 ,
1616 mm.node.label.fontsize = 8 ,
1717 sm.node.label.fontsize = 12 ,
1818 mm.edge.label.fontsize = 7 ,
@@ -23,7 +23,19 @@ seminr_theme_default <- function(plot.title.fontsize = 24,
2323 mm.node.label.fontsize = mm.node.label.fontsize ,
2424 sm.node.label.fontsize = sm.node.label.fontsize ,
2525 mm.edge.label.fontsize = mm.edge.label.fontsize ,
26- sm.edge.label.fontsize = sm.edge.label.fontsize
26+ sm.edge.label.fontsize = sm.edge.label.fontsize ,
27+ construct.reflective.shape = " ellipse" ,
28+ construct.reflective.arrow = " backward" ,
29+ construct.reflective.use_weights = FALSE ,
30+ construct.compositeA.shape = " ellipse" ,
31+ construct.compositeA.arrow = " backward" ,
32+ construct.compositeA.use_weights = FALSE ,
33+ construct.compositeB.shape = " ellipse" ,
34+ construct.compositeB.arrow = " forward" ,
35+ construct.compositeB.use_weights = TRUE ,
36+ manifest.reflective.shape = " box" ,
37+ manifest.compositeA.shape = " box" ,
38+ manifest.compositeB.shape = " box"
2739 )
2840}
2941
@@ -56,23 +68,36 @@ seminr_theme_smart <- function(plot.title.fontsize = 24,
5668}
5769
5870
59- # ' The theme function for a modern approach of visualizing PLS models in b/w
71+ # ' A theme function for a modern approach of visualizing PLS models in b/w
6072# '
6173# ' @param plot.title.fontsize Title font size
6274# ' @param sm.node.label.fontsize Font size for constructs
6375# ' @param mm.node.label.fontsize Font size for measurement variables
6476# ' @param sm.edge.label.fontsize Font size for path edges
6577# ' @param mm.edge.label.fontsize Font size for measurement model edges
78+ # ' @param construct.reflective.shape Shape of reflective constructs
79+ # ' @param construct.compositeA.shape Shape of composite constructs mode A
80+ # ' @param construct.compositeB.shape Shape of composite constructs mode B
81+ # ' @param construct.reflective.arrow Direction of arrows of reflective constructs
82+ # ' @param construct.compositeA.arrow Direction of arrows of composite constructs mode A
83+ # ' @param construct.compositeB.arrow Direction of arrows of composite constructs mode B
84+ # ' @param ... Other parameters for the seminr_theme_create function
6685# '
6786# ' @return a theme object
6887# ' @export
6988# '
7089# @examples
71- seminr_theme_modern <- function (plot.title.fontsize = 24 ,
90+ seminr_theme_default <- function (plot.title.fontsize = 24 ,
7291 mm.node.label.fontsize = 8 ,
7392 sm.node.label.fontsize = 12 ,
7493 mm.edge.label.fontsize = 7 ,
75- sm.edge.label.fontsize = 9
94+ sm.edge.label.fontsize = 9 ,
95+ construct.reflective.shape = " ellipse" ,
96+ construct.compositeA.shape = " hexagon" ,
97+ construct.compositeB.shape = " hexagon" ,
98+ construct.reflective.arrow = " backward" ,
99+ construct.compositeA.arrow = " backward" ,
100+ construct.compositeB.arrow = " forward" , ...
76101){
77102
78103 # TODO: remove arrows for composite
@@ -82,12 +107,13 @@ seminr_theme_modern <- function(plot.title.fontsize = 24,
82107 sm.node.label.fontsize = sm.node.label.fontsize ,
83108 mm.edge.label.fontsize = mm.edge.label.fontsize ,
84109 sm.edge.label.fontsize = sm.edge.label.fontsize ,
85- construct.reflective.shape = " ellipse" ,
86- construct.compositeA.shape = " hexagon" ,
87- construct.compositeB.shape = " ellipse" ,
88- construct.reflective.arrow = " backward" ,
89- construct.compositeA.arrow = " none" ,
90- construct.compositeB.arrow = " forward"
110+ construct.reflective.shape = construct.reflective.shape ,
111+ construct.compositeA.shape = construct.compositeA.shape ,
112+ construct.compositeB.shape = construct.compositeB.shape ,
113+ construct.reflective.arrow = construct.reflective.arrow ,
114+ construct.compositeA.arrow = construct.compositeA.arrow ,
115+ construct.compositeB.arrow = construct.compositeB.arrow ,
116+ ...
91117 )
92118}
93119
0 commit comments