-
Notifications
You must be signed in to change notification settings - Fork 4
/
functionref.html
2150 lines (1436 loc) · 64.6 KB
/
functionref.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>trelliscope R function reference</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/custom/custom.css" rel="stylesheet">
<!-- font-awesome -->
<link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- prism -->
<link href="assets/prism/prism.css" rel="stylesheet">
<link href="assets/prism/prism.r.css" rel="stylesheet">
<script type='text/javascript' src='assets/prism/prism.js'></script>
<script type='text/javascript' src='assets/prism/prism.r.js'></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<!-- <link href='http://fonts.googleapis.com/css?family=Lustria' rel='stylesheet' type='text/css'> -->
<link href='http://fonts.googleapis.com/css?family=Bitter' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:300' rel='stylesheet' type='text/css'>
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
<!-- <link rel="shortcut icon" href="ico/favicon.png"> -->
</head>
<body>
<div class="container-narrow">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li class=''><a href='index.html'>Docs</a></li><li class='active'><a href='functionref.html'>Function Ref</a></li><li><a href='https://github.com/delta-rho/trelliscope'>Github <i class='fa fa-github'></i></a></li>
</ul>
<a class='navbar-brand' href='http://deltarho.org'>
<img src='figures/icon.png' alt='deltarho icon' width='30px' height='30px' style='margin-top: -6px;'>
DeltaRho
</a>
<p class="myHeader">trelliscope R function reference</p>
</div>
<hr>
<div class="container-fluid">
<div class="row-fluid">
<div class="col-md-3 well">
<ul class = "nav nav-list" id="toc">
<li class='nav-header'>Contents</li> <li class="active">
<a target="_self" class="nav-not-header" href="#packagemain">Package Info</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#adddisplay">addDisplay</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#airplane">airplane</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#applycogfn">applyCogFn</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#batting">batting</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#bssetup">bsSetup</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cog">cog</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogncol">cogNcol</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogdisplayhref">cogDisplayHref</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#coghref">cogHref</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogloessrmse">cogLoessRMSE</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogmean">cogMean</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogrange">cogRange</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogscagnostics">cogScagnostics</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#deploytoshinyapps">deployToShinyApps</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#dfcogconn">dfCogConn</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#encodepng">encodePNG</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#getdisplay">getDisplay</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#tohash">toHash</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#listdisplays">listDisplays</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#makedisplay">makeDisplay</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#makepng">makePNG</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#makesploddata">makeSplodData</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#makestatehash">makeStateHash</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#cogpre">cogPre</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#nbdisplay">nbDisplay</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#nbdisplaylist">nbDisplayList</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#newnotebook">newNotebook</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#nomargins">noMargins</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#plottrspre">plot.trsPre</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#prepanel">prepanel</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#printdisplayobj">print.displayObj</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#removedisplay">removeDisplay</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#setlims">setLims</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#splod">splod</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#splodcogfn">splodCogFn</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#splodpanelfn">splodPanelFn</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#synclocaldata">syncLocalData</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#trelliscope">trelliscope</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#typeset">typeset</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#validatestate">validateState</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#vdbconn">vdbConn</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#view">view</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#viewnotebook">viewNotebook</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#webconn">webConn</a>
</li>
<li class="">
<a target="_self" class="nav-not-header" href="#websync">webSync</a>
</li>
</ul>
</div>
<div class="col-md-9 tab-content" id="main-content">
<!-- packagemain -->
<div class="tab-pane active" id="packagemain">
<h3>Trelliscope</h3>
<p><strong>Author:</strong> Ryan Hafen</p>
<p><strong>Version:</strong> 0.8.0.2</p>
<p><strong>Date:</strong> 2014-11-03</p>
<p><strong>License:</strong> BSD_3_clause + file LICENSE</p>
<h4>Description</h4>
<p>Trelliscope provides a way to create, organize, and view
multi-panel displays, a collection of which is called a visualization
database (VDB). This package provides a mechanism for extending the ideas
of Trellis Display to easily generate and organize plots, providing a
dynamic viewer for tiling panels of a display across the screen and paging
through them. There is also a mechanism to generate built-in or
user-defined "cognostic" metrics for each panel of a display , and the
viewer has the ability to sort or filter the pages based on these
cognostics. This is useful for large multi-panel displays where it is not
possible to view each panel, allowing only panels with interesting features
to be presented. This package also provides a way to meaningfully organize
and present these displays in a "lab notebook".</p>
<h4>Depends</h4>
<p>
R (>= 2.15.1),
base,
datadr (>= 0.7.3),
lattice (>= 0.20-23),
ggplot2</p>
<h4>Suggests</h4>
<p>
Cairo,
testthat (>= 0.8.1),
roxygen2 (>= 4.0.0),
scagnostics,
shinyapps</p>
</div>
<!-- addDisplay -->
<div class="tab-pane" id="adddisplay">
<h3 class="fref_title">Add a Display to a VDB</h3>
<h4>Description</h4>
Add an R display (lattice, ggplot, base R) to a visualization database (VDB)
<h4>Usage</h4>
<pre><code class="language-r"><div>addDisplay(p, name, group = "common", desc = "", height = 800, width = 800, conn = getOption("vdbConn"))</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>p</dt>
<dd>an R plot object (lattice or ggplot) or an expression containing code to create a plot</dd>
<dt>name</dt>
<dd>the name of the display (no spaces or special characters)</dd>
<dt>group</dt>
<dd>the group the display belongs to (displays are organized into groups). Defaults to "common"</dd>
<dt>desc</dt>
<dd>a description of the display (used in the viewer and in notebooks)</dd>
<dt>height</dt>
<dd>TODO</dd>
<dt>width</dt>
<dd>TODO</dd>
<dt>conn</dt>
<dd>VDB connection info, typically stored in options("vdbConn") at the beginning of a session, and not necessary to specify here if a valid "vdbConn" object exists</dd>
</dl>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- airplane -->
<div class="tab-pane" id="airplane">
<h3 class="fref_title">Airplane TODO</h3>
<h4>Description</h4>
Airplane details TODO
<h4>Usage</h4>
<pre><code class="language-r"><div>data(airplane)</div></code></pre>
<h4>Format</h4>
<p>A data frame with 1479 rows and 47 variables</p>
<h4>Details</h4>
<p><ul>
<li> dat_ams. : POSIXct, format: "2010-06-28 16:25:21" "2010-06-28 16:25:34" ...
</li>
<li> org. : num 9.26 13.29 12.13 12.36 10.11 ...
</li>
<li> NO3. : num 0.449 0.589 0.536 0.57 0.457 ...
</li>
<li> SO4. : num 0.115 0.193 0.232 0.307 0.197 ...
</li>
<li> NH4. : num 0.126 0.229 0.224 0.179 0.172 ...
</li>
<li> CHL. : num 0.01119 0.01748 0.00607 0.03346 0.00683 ...
</li>
<li> org_err. : num 0.111 0.117 0.116 0.116 0.115 ...
</li>
<li> NO3_err. : num 0.0172 0.0181 0.0177 0.0182 0.0175 ...
</li>
<li> SO4_err. : num 0.0222 0.0244 0.0252 0.0253 0.025 ...
</li>
<li> NH4_err. : num 0.0331 0.0331 0.0331 0.0332 0.0331 ...
</li>
<li> CHl_err. : num 0.0124 0.0122 0.0123 0.0123 0.0123 ...
</li>
<li> latitude. : num 38.7 38.7 38.7 38.7 38.7 ...
</li>
<li> longitude. : num -121 -121 -121 -121 -121 ...
</li>
<li> altitude. : num 354 369 385 393 388 ...
</li>
<li> static_p. : num 968 966 964 963 964 ...
</li>
<li> altitude_p. : num 327 341 356 365 360 ...
</li>
<li> static_t. : num 28.4 28.7 28.6 28.5 28.8 ...
</li>
<li> potential_t. : num 31.3 31.7 31.7 31.7 32 ...
</li>
<li> dewpt. : num 14.1 13.5 13.4 12.9 11.1 ...
</li>
<li> RH. : num 41.6 39.3 39.3 38.5 33.5 ...
</li>
<li> h2o_MF. : num 10.54 10.11 10.05 9.8 8.68 ...
</li>
<li> windspd. : num 3.45 3.9 4.14 4.12 4.7 4.54 3.42 3.1 2.98 2.64 ...
</li>
<li> winddir. : num 330 325 320 318 317 ...
</li>
<li> cpc_3025. : num 5508 3915 4037 3969 3567 ...
</li>
<li> cpc_3010. : num 483 352 364 348 314 ...
</li>
<li> ozone. : num 46.8 44.3 45.2 45.5 40.4 ...
</li>
<li> co. : num 109.7 97.6 101.2 103.1 91.8 ...
</li>
<li> so2. : num NA NA NA NA NA NA NA 0.6 0.465 0.644 ...
</li>
<li> no. : num 0.3074 0.0514 0.1456 0.1593 0.115 ...
</li>
<li> no2. : num 1.745 0.358 0.573 0.688 0.8 ...
</li>
<li> noy. : num 5.25 3.48 4.09 4.02 3.53 ...
</li>
<li> mz_33. : num 16.7 14.6 14.4 14.1 11.1 ...
</li>
<li> mz_42. : num 0.1024 0.1176 0.1333 0.0916 0.0407 ...
</li>
<li> mz_45. : num 5.98 5.22 5.19 4.84 5.07 ...
</li>
<li> mz_59. : num 8.49 7.71 6.85 7.08 6.46 ...
</li>
<li> mz_69. : num 1.589 0.811 0.791 0.904 0.911 ...
</li>
<li> mz_71. : num 3.88 3.65 3.35 2.94 2.74 ...
</li>
<li> mz_79. : num 0.417 0.243 0.192 0.261 0.178 ...
</li>
<li> mz_93. : num 0.446 0.571 0.454 0.218 0.185 ...
</li>
<li> mz_107. : num 0.686 0.869 0.661 0.78 0.265 ...
</li>
<li> mz_137. : num 0.519 0.452 0.093 0.353 0.348 ...
</li>
<li> mz_43. : num 8.52 8.3 8.17 8.38 6.87 ...
</li>
<li> mz_61. : num 5.39 5.13 5.1 5.17 4.96 ...
</li>
<li> mz_87. : num 0.302 0.235 0.418 0.298 0.364 ...
</li>
<li> mz69_71. : num 5.47 4.46 4.14 3.84 3.65 ...
</li>
<li> leg_flag. : int 13 13 13 13 3 3 3 3 3 3 ...
</li>
<li> nox. : num 2.053 0.41 0.718 0.847 0.915 ...
</li>
</ul></p>
<p></p>
</div>
<!-- applyCogFn -->
<div class="tab-pane" id="applycogfn">
<h3 class="fref_title">Apply Cognostics Function to a Key-Value Pair</h3>
<h4>Description</h4>
Apply cognostics function to a key-value pair
<h4>Usage</h4>
<pre><code class="language-r"><div>applyCogFn(cogFn, kvSubset, conn)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>cogFn</dt>
<dd>cognostics function</dd>
<dt>kvSubset</dt>
<dd>key-value pair</dd>
<dt>conn</dt>
<dd>TODO</dd>
</dl>
<h4>See also</h4>
<code><a href='#cog'>cog</a></code>, <code><a href='#makedisplay'>makeDisplay</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- batting -->
<div class="tab-pane" id="batting">
<h3 class="fref_title">Batting Title TODO</h3>
<h4>Description</h4>
Batting details TODO
<h4>Usage</h4>
<pre><code class="language-r"><div>data(batting)</div></code></pre>
<h4>Format</h4>
<p>A data frame with 1406 rows and 22 variables</p>
<h4>Details</h4>
<p><ul>
<li> playerID. : Factor w/ 17908 levels "aardsda01","aaronha01",..: 1 6 34 34 37 40 40 41 46 51 ...
</li>
<li> yearID. : int 2012 2012 2012 2012 2012 2012 2012 2012 2012 2012 ...
</li>
<li> stint. : int 1 1 1 2 1 1 2 1 1 1 ...
</li>
<li> teamID. : Factor w/ 149 levels "ALT","ANA","ARI",..: 93 58 71 72 66 45 96 16 116 94 ...
</li>
<li> lgID. : Factor w/ 6 levels "AA","AL","FL",..: 2 4 2 4 2 2 2 2 2 4 ...
</li>
<li> G. : int 1 37 8 92 22 26 1 69 153 45 ...
</li>
<li> AB. : int NA 7 24 195 70 0 NA 0 607 0 ...
</li>
<li> R. : int NA 0 1 28 5 0 NA 0 84 0 ...
</li>
<li> H. : int NA 1 5 48 18 0 NA 0 137 0 ...
</li>
<li> X2B. : int NA 0 3 8 2 0 NA 0 22 0 ...
</li>
<li> X3B. : int NA 0 0 1 1 0 NA 0 2 0 ...
</li>
<li> HR. : int NA 0 0 3 1 0 NA 0 12 0 ...
</li>
<li> RBI. : int NA 0 5 19 15 0 NA 0 50 0 ...
</li>
<li> SB. : int NA 0 0 6 0 0 NA 0 13 0 ...
</li>
<li> CS. : int NA 0 0 2 0 0 NA 0 3 0 ...
</li>
<li> BB. : int NA 0 2 35 2 0 NA 0 59 0 ...
</li>
<li> SO. : int NA 3 5 51 13 0 NA 0 124 0 ...
</li>
<li> IBB. : int NA 0 0 3 0 0 NA 0 7 0 ...
</li>
<li> HBP. : int NA 0 0 0 1 0 NA 0 0 0 ...
</li>
<li> SH. : int NA 0 0 0 0 0 NA 0 1 0 ...
</li>
<li> SF. : int NA 0 1 0 1 0 NA 0 1 0 ...
</li>
<li> GIDP. : int NA 1 1 6 1 0 NA 0 3 0 ...
</li>
<li> price. price in US dollars (\$326--\$18,823)
</li>
</ul></p>
<p></p>
</div>
<!-- bsSetup -->
<div class="tab-pane" id="bssetup">
<h3 class="fref_title">Set Up Web Notebook Using Bootstrap</h3>
<h4>Description</h4>
Set up a Twitter Boostrap template for a notebook to be typeset with knitr. This function should be called at the beginning of a .Rmd file. If you use <code><a href='newNotebook.html'>newNotebook</a></code> to initialize a notebook .Rmd file, this will already be there.
<h4>Usage</h4>
<pre><code class="language-r"><div>bsSetup(pageTitle = "test", title = "test", author = "author name", toc = TRUE, css = NULL)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>pageTitle</dt>
<dd>the text to display on the title bar of the web browser</dd>
<dt>title</dt>
<dd>the text to display on the header of the web page</dd>
<dt>author</dt>
<dd>author</dd>
<dt>toc</dt>
<dd>should a table-of-contents be included?</dd>
<dt>css</dt>
<dd>path to additional style sheets, if desired</dd>
</dl>
<h4>References</h4>
<p>http://twitter.github.com/bootstrap/</p>
<h4>See also</h4>
<code><a href='#newnotebook'>newNotebook</a></code>, <code><a href='#typeset'>typeset</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cog -->
<div class="tab-pane" id="cog">
<h3 class="fref_title">Create a Cognostics Object</h3>
<h4>Description</h4>
Create a cognostics object. To be used inside of the function passed to the <code>cogFn</code> argument of <code><a href='makeDisplay.html'>makeDisplay</a></code> for each cognostics value to be computed for each subset.
<h4>Usage</h4>
<pre><code class="language-r"><div>cog(val = NULL, desc = "", group = "common", type = NULL, defLabel = FALSE, defActive = TRUE, filterable = TRUE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>val</dt>
<dd>a scalar value (numeric, characer, date, etc.)</dd>
<dt>desc</dt>
<dd>a description for this cognostic value</dd>
<dt>group</dt>
<dd>optional categorization of the cognostic for organizational purposes</dd>
<dt>type</dt>
<dd>the desired type of cognostic you would like to compute (see details)</dd>
<dt>defLabel</dt>
<dd>should this cognostic be used as a panel label in the viewer by default?</dd>
<dt>defActive</dt>
<dd>should this cognostic be active (available for sort / filter / sample) by default?</dd>
<dt>filterable</dt>
<dd>should this cognostic be filterable? Default is <code>TRUE</code>. It can be useful to set this to <code>FALSE</code> if the cognostic is categorical with many unique values and is only desired to be used as a panel label.</dd>
</dl>
<h4>Value</h4>
<p>object of class "cog"</p>
<h4>Details</h4>
<p>Different types of cognostics can be specified through the <code>type</code> argument that will effect how the user is able to interact with those cognostics in the viewer. This can usually be ignored because it will be inferred from the implicit data type of <code>val</code>. But there are special types of cognostics, such as geographic coordinates and relations (not implemented) that can be specified as well. Current possibilities for <code>type</code> are "key", "integer", "numeric", "factor", "date", "time", "geo", "rel", "hier", "href".</p>
<h4>See also</h4>
<code><a href='#makedisplay'>makeDisplay</a></code>, <code><a href='#cogrange'>cogRange</a></code>, <code><a href='#cogmean'>cogMean</a></code>, <code><a href='#cogscagnostics'>cogScagnostics</a></code>, <code><a href='#cogloessrmse'>cogLoessRMSE</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cogNcol -->
<div class="tab-pane" id="cogncol">
<h3 class="fref_title">Methods for Cognostics Connections</h3>
<h4>Description</h4>
Methods for Cognostics Connections
<h4>Usage</h4>
<pre><code class="language-r"><div>cogNcol(x, ...)</div>
<div>cogNrow(x, ...)</div>
<div>cogNames(x, ...)</div>
<div>getCogData(x, rowIdx, colIdx, ...)</div>
<div>oldGetCurCogDat(cogDF, flt, ordering, colIndex, verbose, ...)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>x</dt>
<dd>object</dd>
<dt>...</dt>
<dd>other objects passed onto generic methods</dd>
<dt>rowIdx</dt>
<dd>TODO</dd>
<dt>colIdx</dt>
<dd>TODO</dd>
<dt>cogDF</dt>
<dd>TODO</dd>
<dt>flt</dt>
<dd>TODO</dd>
<dt>ordering</dt>
<dd>TODO</dd>
<dt>colIndex</dt>
<dd>TODO</dd>
<dt>verbose</dt>
<dd>TODO</dd>
</dl>
<h4>Note</h4>
<p>These methods are used mainly by the trelliscope viewer and therefore must be exported. They should never need to be used by an analyst.</p>
</div>
<!-- cogDisplayHref -->
<div class="tab-pane" id="cogdisplayhref">
<h3 class="fref_title">DisplayHref Cognostic</h3>
<h4>Description</h4>
Create href that points to another trelliscope display with optional state
<h4>Usage</h4>
<pre><code class="language-r"><div>cogDisplayHref(displayName, displayGroup = NULL, state = NULL, label = "link", desc = "display link", group = "common", target = "_blank", defLabel = FALSE, defActive = FALSE, filterable = FALSE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>displayName</dt>
<dd>the name of the display</dd>
<dt>displayGroup</dt>
<dd>the group the display belongs to</dd>
<dt>state</dt>
<dd>if specified, this tells the viewer the default parameter settings (such as layout, sorting, filtering, etc.) to use when the display is viewed (see <code><a href='#validatestate'>validateState</a></code> for details)</dd>
<dt>label</dt>
<dd>label of the href</dd>
<dt>desc,group,defLabel,defActive,filterable</dt>
<dd>arguments passed to <code><a href='#cog'>cog</a></code></dd>
<dt>target</dt>
<dd>value to be used for the <code>target</code> attribute of the <code>a</code> html tag - default is "_blank" which will open the link in a new window</dd>
</dl>
<h4>Value</h4>
<p>a hash string</p>
<h4>See also</h4>
<code><a href='#validatestate'>validateState</a></code>, <code><a href='#coghref'>cogHref</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cogHref -->
<div class="tab-pane" id="coghref">
<h3 class="fref_title">Href Cognostic</h3>
<h4>Description</h4>
Create href to be used as cognostics in a trelliscope display.
<h4>Usage</h4>
<pre><code class="language-r"><div>cogHref(x, label = "link", desc = "link", group = "common", target = "_blank", defLabel = FALSE, defActive = FALSE, filterable = FALSE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>x</dt>
<dd>URL to link to</dd>
<dt>label</dt>
<dd>label of the href</dd>
<dt>desc,group,defLabel,defActive,filterable</dt>
<dd>arguments passed to <code><a href='#cog'>cog</a></code></dd>
<dt>target</dt>
<dd>value to be used for the <code>target</code> attribute of the <code>a</code> html tag - default is "_blank" which will open the link in a new window</dd>
</dl>
<h4>See also</h4>
<code><a href='#cog'>cog</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cogLoessRMSE -->
<div class="tab-pane" id="cogloessrmse">
<h3 class="fref_title">Compute RMSE of Loess Fit Cognostic</h3>
<h4>Description</h4>
Compute RMSE of loess fit as a cognostic to be used as cognostics in a trelliscope display.
<h4>Usage</h4>
<pre><code class="language-r"><div>cogLoessRMSE(..., desc = "RMSE of residuals from loess fit", group = "common", defLabel = FALSE, defActive = TRUE, filterable = TRUE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>desc,group,defLabel,defActive,filterable</dt>
<dd>arguments passed to <code><a href='#cog'>cog</a></code></dd>
<dt>...</dt>
<dd>arguments to be passed to <code>link{loess}</code>, such as the formula, data, smoothing parameters, etc.</dd>
</dl>
<h4>See also</h4>
<code><a href='#cog'>cog</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cogMean -->
<div class="tab-pane" id="cogmean">
<h3 class="fref_title">Compute Mean Cognostic</h3>
<h4>Description</h4>
Compute mean to be used as cognostics in a trelliscope display.
<h4>Usage</h4>
<pre><code class="language-r"><div>cogMean(x, desc = "mean", group = "common", defLabel = FALSE, defActive = TRUE, filterable = TRUE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>x</dt>
<dd>numeric vector from which to compute the mean</dd>
<dt>desc,group,defLabel,defActive,filterable</dt>
<dd>arguments passed to <code><a href='#cog'>cog</a></code></dd>
</dl>
<h4>See also</h4>
<code><a href='#cog'>cog</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cogRange -->
<div class="tab-pane" id="cogrange">
<h3 class="fref_title">Compute Range Cognostic</h3>
<h4>Description</h4>
Compute range to be used as cognostics in a trelliscope display.
<h4>Usage</h4>
<pre><code class="language-r"><div>cogRange(x, desc = "range (max - min)", group = "common", defLabel = FALSE, defActive = TRUE, filterable = TRUE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>x</dt>
<dd>numeric vector from which to compute the range</dd>
<dt>desc,group,defLabel,defActive,filterable</dt>
<dd>arguments passed to <code><a href='#cog'>cog</a></code></dd>
</dl>
<h4>See also</h4>
<code><a href='#cog'>cog</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- cogScagnostics -->
<div class="tab-pane" id="cogscagnostics">
<h3 class="fref_title">Compute Scagnostics</h3>
<h4>Description</h4>
Compute list of scagnostics (see <code><a href='http://www.inside-r.org/packages/cran/scagnostics/docs/scagnostics'>scagnostics</a></code>) to be used as cognostics in a trelliscope display.
<h4>Usage</h4>
<pre><code class="language-r"><div>cogScagnostics(x, y, group = "scagnostics", defLabel = FALSE, defActive = TRUE, filterable = TRUE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>x</dt>
<dd>vector of the x-axis data for a scatterplot</dd>
<dt>y</dt>
<dd>vector of the y-axis data for a scatterplot</dd>
<dt>group,defLabel,defActive,filterable</dt>
<dd>arguments passed to <code><a href='#cog'>cog</a></code></dd>
</dl>
<h4>See also</h4>
<code><a href='#cog'>cog</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- deployToShinyApps -->
<div class="tab-pane" id="deploytoshinyapps">
<h3 class="fref_title">Deploy VDB to shinyapps.io</h3>
<h4>Description</h4>
Deploy VDB to shinyapps.io
<h4>Usage</h4>
<pre><code class="language-r"><div>deployToShinyApps(vdbConn = getOption("vdbConn"), appName = NULL, account = NULL, redeploy = TRUE, size = NULL, instances = NULL, quiet = FALSE)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>vdbConn</dt>
<dd>VDB connection settings</dd>
<dt>appName</dt>
<dd>name of application (app will be available at https://[account].shinyapps.io/[appName]/) - if not supplied, will use the name of VDB connection</dd>
<dt>account</dt>
<dd>passed to <code>shinyapps::configureApp</code></dd>
<dt>redeploy</dt>
<dd>passed to <code>shinyapps::configureApp</code></dd>
<dt>size</dt>
<dd>passed to <code>shinyapps::configureApp</code></dd>
<dt>instances</dt>
<dd>passed to <code>shinyapps::configureApp</code></dd>
<dt>quiet</dt>
<dd>passed to <code>shinyapps::configureApp</code></dd>
</dl>
<h4>Details</h4>
<p>If you do not have a shinyapps.io account and have not set your account info, first visit here prior to calling this function: <a href = 'http://shiny.rstudio.com/articles/#shinyapps'>http://shiny.rstudio.com/articles/#shinyapps</a>.</p>
<h4>Author</h4>
Ryan Hafen
<code><a href='syncLocalData.html'>syncLocalData</a></code>
</div>
<!-- dfCogConn -->
<div class="tab-pane" id="dfcogconn">
<h3 class="fref_title">Initiate Data Frame Cognostics Connection</h3>
<h4>Description</h4>
Initiate data frame cognostics connection
<h4>Usage</h4>
<pre><code class="language-r"><div>dfCogConn()</div></code></pre>
<h4>Value</h4>
<p>"cogConn" object of class "dfCogConn"</p>
<h4>Note</h4>
<p>This should never need to be called explicitly. It is the default mechanism for storing cognostics in <code><a href='#makedisplay'>makeDisplay</a></code>.</p>
<h4>See also</h4>
<code><a href='#makedisplay'>makeDisplay</a></code>
<h4>Author</h4>
Ryan Hafen
</div>
<!-- encodePNG -->
<div class="tab-pane" id="encodepng">
<h3 class="fref_title">base64 Encoding of a .png File</h3>
<h4>Description</h4>
base64 Encoding of a .png File
<h4>Usage</h4>
<pre><code class="language-r"><div>encodePNG(plotLoc)</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>plotLoc</dt>
<dd>TODO</dd>
</dl>
</div>
<!-- getDisplay -->
<div class="tab-pane" id="getdisplay">
<h3 class="fref_title">Retrieve Display Object from VDB</h3>
<h4>Description</h4>
Retrieve a display object from a VDB.
<h4>Usage</h4>
<pre><code class="language-r"><div>getDisplay(name, group = NULL, conn = getOption("vdbConn"))</div></code></pre>
<h4>Arguments</h4>
<dl>
<dt>name</dt>
<dd>the name of the display</dd>
<dt>group</dt>
<dd>the group of the display</dd>
<dt>conn</dt>
<dd>VDB connection info, typically stored in options("vdbConn") at the beginning of a session, and not necessary to specify here if a valid "vdbConn" object exists</dd>
</dl>