Get data passed to e_charts.

e_get_data(e)

Arguments

e

An echarts4r object as returned by e_charts.

Value

A list of data.frames, one for each group.

Examples

echart <- cars %>% e_charts(speed) %>% e_scatter(dist) %>% e_lm(dist ~ speed) echart e_get_data(echart)[[1]]
#> speed dist .fitted .se.fit .resid .hat .sigma .cooksd #> 1 4 2 -1.849460 5.212326 3.849460 0.11486131 15.53088 4.592312e-03 #> 2 4 10 -1.849460 5.212326 11.849460 0.11486131 15.43338 4.351399e-02 #> 3 7 4 9.947766 4.112527 -5.947766 0.07150365 15.51624 6.202350e-03 #> 4 7 22 9.947766 4.112527 12.052234 0.07150365 15.43489 2.546734e-02 #> 5 8 16 13.880175 3.766297 2.119825 0.05997080 15.53907 6.446705e-04 #> 6 9 10 17.812584 3.435464 -7.812584 0.04989781 15.49830 7.131993e-03 #> 7 10 18 21.744993 3.124921 -3.744993 0.04128467 15.53232 1.331656e-03 #> 8 10 26 21.744993 3.124921 4.255007 0.04128467 15.52941 1.719059e-03 #> 9 10 34 21.744993 3.124921 12.255007 0.04128467 15.43474 1.425993e-02 #> 10 11 17 25.677401 2.841330 -8.677401 0.03413139 15.48889 5.823417e-03 #> 11 11 28 25.677401 2.841330 2.322599 0.03413139 15.53851 4.172024e-04 #> 12 12 14 29.609810 2.593545 -15.609810 0.02843796 15.36972 1.551791e-02 #> 13 12 20 29.609810 2.593545 -9.609810 0.02843796 15.47714 5.881222e-03 #> 14 12 24 29.609810 2.593545 -5.609810 0.02843796 15.52015 2.004169e-03 #> 15 12 28 29.609810 2.593545 -1.609810 0.02843796 15.54051 1.650393e-04 #> 16 13 26 33.542219 2.392719 -7.542219 0.02420438 15.50238 3.056717e-03 #> 17 13 34 33.542219 2.392719 0.457781 0.02420438 15.54219 1.126088e-05 #> 18 13 34 33.542219 2.392719 0.457781 0.02420438 15.54219 1.126088e-05 #> 19 13 46 33.542219 2.392719 12.457781 0.02420438 15.43309 8.339467e-03 #> 20 14 26 37.474628 2.251451 -11.474628 0.02143066 15.44997 6.228883e-03 #> 21 14 36 37.474628 2.251451 -1.474628 0.02143066 15.54082 1.028721e-04 #> 22 14 60 37.474628 2.251451 22.525372 0.02143066 15.18329 2.400363e-02 #> 23 14 80 37.474628 2.251451 42.525372 0.02143066 14.22128 8.555181e-02 #> 24 15 20 41.407036 2.181343 -21.407036 0.02011679 15.21887 2.029569e-02 #> 25 15 26 41.407036 2.181343 -15.407036 0.02011679 15.37563 1.051305e-02 #> 26 15 54 41.407036 2.181343 12.592964 0.02011679 15.43117 7.023387e-03 #> 27 16 32 45.339445 2.189244 -13.339445 0.02026277 15.41752 7.940281e-03 #> 28 16 40 45.339445 2.189244 -5.339445 0.02026277 15.52241 1.272192e-03 #> 29 17 32 49.271854 2.274339 -17.271854 0.02186861 15.33216 1.441403e-02 #> 30 17 40 49.271854 2.274339 -9.271854 0.02186861 15.48206 4.153753e-03 #> 31 17 50 49.271854 2.274339 0.728146 0.02186861 15.54197 2.561795e-05 #> 32 18 42 53.204263 2.428529 -11.204263 0.02493431 15.45396 6.959480e-03 #> 33 18 56 53.204263 2.428529 2.795737 0.02493431 15.53685 4.333142e-04 #> 34 18 76 53.204263 2.428529 22.795737 0.02493431 15.17318 2.880829e-02 #> 35 18 84 53.204263 2.428529 30.795737 0.02493431 14.86170 5.257647e-02 #> 36 19 36 57.136672 2.639733 -21.136672 0.02945985 15.22400 2.953639e-02 #> 37 19 46 57.136672 2.639733 -11.136672 0.02945985 15.45462 8.199645e-03 #> 38 19 68 57.136672 2.639733 10.863328 0.02945985 15.45889 7.802074e-03 #> 39 20 32 61.069080 2.895501 -29.069080 0.03544526 14.93066 6.805305e-02 #> 40 20 48 61.069080 2.895501 -13.069080 0.03544526 15.42066 1.375546e-02 #> 41 20 52 61.069080 2.895501 -9.069080 0.03544526 15.48386 6.623866e-03 #> 42 20 56 61.069080 2.895501 -5.069080 0.03544526 15.52409 2.069395e-03 #> 43 20 64 61.069080 2.895501 2.930920 0.03544526 15.53624 6.918196e-04 #> 44 22 66 68.933898 3.500187 -2.933898 0.05179562 15.53612 1.048238e-03 #> 45 23 54 72.866307 3.834442 -18.866307 0.06216058 15.28035 5.317562e-02 #> 46 24 70 76.798715 4.183287 -6.798715 0.07398540 15.50813 8.430333e-03 #> 47 24 92 76.798715 4.183287 15.201285 0.07398540 15.37059 4.214554e-02 #> 48 24 93 76.798715 4.183287 16.201285 0.07398540 15.34710 4.787292e-02 #> 49 24 120 76.798715 4.183287 43.201285 0.07398540 14.09546 3.403959e-01 #> 50 25 85 80.731124 4.543362 4.268876 0.08727007 15.52867 4.035418e-03 #> .std.resid #> 1 0.26604155 #> 2 0.81893273 #> 3 -0.40134618 #> 4 0.81326629 #> 5 0.14216236 #> 6 -0.52115255 #> 7 -0.24869180 #> 8 0.28256008 #> 9 0.81381197 #> 10 -0.57409795 #> 11 0.15366341 #> 12 -1.02971654 #> 13 -0.63392061 #> 14 -0.37005667 #> 15 -0.10619272 #> 16 -0.49644946 #> 17 0.03013240 #> 18 0.03013240 #> 19 0.82000518 #> 20 -0.75422016 #> 21 -0.09692637 #> 22 1.48057874 #> 23 2.79516632 #> 24 -1.40612757 #> 25 -1.01201579 #> 26 0.82717256 #> 27 -0.87627072 #> 28 -0.35074918 #> 29 -1.13552237 #> 30 -0.60956963 #> 31 0.04787130 #> 32 -0.73777117 #> 33 0.18409193 #> 34 1.50103921 #> 35 2.02781813 #> 36 -1.39503525 #> 37 -0.73502818 #> 38 0.71698735 #> 39 -1.92452335 #> 40 -0.86524066 #> 41 -0.60041999 #> 42 -0.33559931 #> 43 0.19404203 #> 44 -0.19590672 #> 45 -1.26671228 #> 46 -0.45938126 #> 47 1.02713306 #> 48 1.09470190 #> 49 2.91906038 #> 50 0.29053451