These functions provide a simple formula-based interface to plot3d and persp3d.

# S3 method for formula
plot3d(x, data = NULL, xlab, ylab, zlab, ...)
# S3 method for formula
persp3d(x, data = NULL, xlab, ylab, zlab, ...)

## Arguments

x A formula like z ~ x + y. An optional dataframe or list in which to find the components of the formula. Optional axis labels to override the ones automatically obtained from the formula. Additional arguments to pass to the default plot3d method, or the persp3d method for "deldir" objects.

## Details

Only simple formulas (the ones handled by the xyz.coords function) are supported: a single variable on the left hand side (which will be plotted on the Z axis), and a sum of two variables on the right hand side (which will be the X and Y axis variables in the plot.)

## Note

The persp3d method requires that the suggested package deldir is installed.

## Value

These functions are called for the side effect of drawing the plots. The plot3d method draws a scatterplot. The persp3d method draws a surface plot.

Return values are as given by the plot3d.default method or the persp3d.deldir methods.

Duncan Murdoch

## Examples

open3d()
mfrow3d(1, 2, sharedMouse = TRUE)
plot3d(mpg ~ wt + qsec, data = mtcars)

{"x":{"material":{"color":"#000000","alpha":1,"lit":true,"ambient":"#000000","specular":"#FFFFFF","emission":"#000000","shininess":50,"smooth":true,"front":"filled","back":"filled","size":3,"lwd":1,"fog":true,"point_antialias":false,"line_antialias":false,"texture":null,"textype":"rgb","texmipmap":false,"texminfilter":"linear","texmagfilter":"linear","texenvmap":false,"depth_mask":true,"depth_test":"less","isTransparent":false,"polygon_offset":[0,0],"margin":"","floating":false},"rootSubscene":1228,"objects":{"1236":{"id":1236,"type":"points","material":{"lit":false},"vertices":[[2.61999988555908,16.4599990844727,21],[2.875,17.0200004577637,21],[2.3199999332428,18.6100006103516,22.7999992370605],[3.21499991416931,19.4400005340576,21.3999996185303],[3.44000005722046,17.0200004577637,18.7000007629395],[3.46000003814697,20.2199993133545,18.1000003814697],[3.5699999332428,15.8400001525879,14.3000001907349],[3.19000005722046,20,24.3999996185303],[3.15000009536743,22.8999996185303,22.7999992370605],[3.44000005722046,18.2999992370605,19.2000007629395],[3.44000005722046,18.8999996185303,17.7999992370605],[4.07000017166138,17.3999996185303,16.3999996185303],[3.73000001907349,17.6000003814697,17.2999992370605],[3.77999997138977,18,15.1999998092651],[5.25,17.9799995422363,10.3999996185303],[5.42399978637695,17.8199996948242,10.3999996185303],[5.34499979019165,17.4200000762939,14.6999998092651],[2.20000004768372,19.4699993133545,32.4000015258789],[1.61500000953674,18.5200004577637,30.3999996185303],[1.83500003814697,19.8999996185303,33.9000015258789],[2.46499991416931,20.0100002288818,21.5],[3.51999998092651,16.8700008392334,15.5],[3.43499994277954,17.2999992370605,15.1999998092651],[3.83999991416931,15.4099998474121,13.3000001907349],[3.84500002861023,17.0499992370605,19.2000007629395],[1.93499994277954,18.8999996185303,27.2999992370605],[2.14000010490417,16.7000007629395,26],[1.51300001144409,16.8999996185303,30.3999996185303],[3.17000007629395,14.5,15.8000001907349],[2.76999998092651,15.5,19.7000007629395],[3.5699999332428,14.6000003814697,15],[2.77999997138977,18.6000003814697,21.3999996185303]],"colors":[[0,0,0,1]],"centers":[[2.61999988555908,16.4599990844727,21],[2.875,17.0200004577637,21],[2.3199999332428,18.6100006103516,22.7999992370605],[3.21499991416931,19.4400005340576,21.3999996185303],[3.44000005722046,17.0200004577637,18.7000007629395],[3.46000003814697,20.2199993133545,18.1000003814697],[3.5699999332428,15.8400001525879,14.3000001907349],[3.19000005722046,20,24.3999996185303],[3.15000009536743,22.8999996185303,22.7999992370605],[3.44000005722046,18.2999992370605,19.2000007629395],[3.44000005722046,18.8999996185303,17.7999992370605],[4.07000017166138,17.3999996185303,16.3999996185303],[3.73000001907349,17.6000003814697,17.2999992370605],[3.77999997138977,18,15.1999998092651],[5.25,17.9799995422363,10.3999996185303],[5.42399978637695,17.8199996948242,10.3999996185303],[5.34499979019165,17.4200000762939,14.6999998092651],[2.20000004768372,19.4699993133545,32.4000015258789],[1.61500000953674,18.5200004577637,30.3999996185303],[1.83500003814697,19.8999996185303,33.9000015258789],[2.46499991416931,20.0100002288818,21.5],[3.51999998092651,16.8700008392334,15.5],[3.43499994277954,17.2999992370605,15.1999998092651],[3.83999991416931,15.4099998474121,13.3000001907349],[3.84500002861023,17.0499992370605,19.2000007629395],[1.93499994277954,18.8999996185303,27.2999992370605],[2.14000010490417,16.7000007629395,26],[1.51300001144409,16.8999996185303,30.3999996185303],[3.17000007629395,14.5,15.8000001907349],[2.76999998092651,15.5,19.7000007629395],[3.5699999332428,14.6000003814697,15],[2.77999997138977,18.6000003814697,21.3999996185303]],"ignoreExtent":false,"flags":34816},"1238":{"id":1238,"type":"text","material":{"lit":false,"margin":0,"floating":true,"edge":[0,1,1]},"vertices":[["NaN",4,1]],"colors":[[0,0,0,1]],"texts":[["wt"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":[["NaN",4,1]],"family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"1239":{"id":1239,"type":"text","material":{"lit":false,"margin":1,"floating":true,"edge":[1,1,1]},"vertices":[["NaN",4,1]],"colors":[[0,0,0,1]],"texts":[["qsec"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":[["NaN",4,1]],"family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"1240":{"id":1240,"type":"text","material":{"lit":false,"margin":2,"floating":true,"edge":[1,1,1]},"vertices":[["NaN",4,1]],"colors":[[0,0,0,1]],"texts":[["mpg"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":[["NaN",4,1]],"family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"1241":{"id":1241,"type":"triangles","material":{},"vertices":[[2.61999988555908,16.4599990844727,21],[2.875,17.0200004577637,21],[2.14000010490417,16.7000007629395,26],[2.61999988555908,16.4599990844727,21],[3.51999998092651,16.8700008392334,15.5],[2.875,17.0200004577637,21],[2.61999988555908,16.4599990844727,21],[3.5699999332428,15.8400001525879,14.3000001907349],[3.51999998092651,16.8700008392334,15.5],[2.61999988555908,16.4599990844727,21],[2.76999998092651,15.5,19.7000007629395],[3.5699999332428,15.8400001525879,14.3000001907349],[2.61999988555908,16.4599990844727,21],[2.14000010490417,16.7000007629395,26],[2.76999998092651,15.5,19.7000007629395],[2.875,17.0200004577637,21],[2.3199999332428,18.6100006103516,22.7999992370605],[2.14000010490417,16.7000007629395,26],[2.875,17.0200004577637,21],[2.77999997138977,18.6000003814697,21.3999996185303],[2.3199999332428,18.6100006103516,22.7999992370605],[2.875,17.0200004577637,21],[3.51999998092651,16.8700008392334,15.5],[3.44000005722046,17.0200004577637,18.7000007629395],[2.875,17.0200004577637,21],[3.44000005722046,17.0200004577637,18.7000007629395],[3.43499994277954,17.2999992370605,15.1999998092651],[2.875,17.0200004577637,21],[3.43499994277954,17.2999992370605,15.1999998092651],[3.44000005722046,18.2999992370605,19.2000007629395],[2.875,17.0200004577637,21],[3.44000005722046,18.2999992370605,19.2000007629395],[2.77999997138977,18.6000003814697,21.3999996185303],[2.3199999332428,18.6100006103516,22.7999992370605],[2.77999997138977,18.6000003814697,21.3999996185303],[2.20000004768372,19.4699993133545,32.4000015258789],[2.3199999332428,18.6100006103516,22.7999992370605],[2.20000004768372,19.4699993133545,32.4000015258789],[1.93499994277954,18.8999996185303,27.2999992370605],[2.3199999332428,18.6100006103516,22.7999992370605],[1.61500000953674,18.5200004577637,30.3999996185303],[1.51300001144409,16.8999996185303,30.3999996185303],[2.3199999332428,18.6100006103516,22.7999992370605],[1.93499994277954,18.8999996185303,27.2999992370605],[1.61500000953674,18.5200004577637,30.3999996185303],[2.3199999332428,18.6100006103516,22.7999992370605],[1.51300001144409,16.8999996185303,30.3999996185303],[2.14000010490417,16.7000007629395,26],[3.21499991416931,19.4400005340576,21.3999996185303],[3.46000003814697,20.2199993133545,18.1000003814697],[3.19000005722046,20,24.3999996185303],[3.21499991416931,19.4400005340576,21.3999996185303],[3.44000005722046,18.8999996185303,17.7999992370605],[3.46000003814697,20.2199993133545,18.1000003814697],[3.21499991416931,19.4400005340576,21.3999996185303],[3.19000005722046,20,24.3999996185303],[2.46499991416931,20.0100002288818,21.5],[3.21499991416931,19.4400005340576,21.3999996185303],[2.77999997138977,18.6000003814697,21.3999996185303],[3.44000005722046,18.8999996185303,17.7999992370605],[3.21499991416931,19.4400005340576,21.3999996185303],[2.20000004768372,19.4699993133545,32.4000015258789],[2.77999997138977,18.6000003814697,21.3999996185303],[3.21499991416931,19.4400005340576,21.3999996185303],[2.46499991416931,20.0100002288818,21.5],[2.20000004768372,19.4699993133545,32.4000015258789],[3.44000005722046,17.0200004577637,18.7000007629395],[3.51999998092651,16.8700008392334,15.5],[3.84500002861023,17.0499992370605,19.2000007629395],[3.44000005722046,17.0200004577637,18.7000007629395],[3.84500002861023,17.0499992370605,19.2000007629395],[3.43499994277954,17.2999992370605,15.1999998092651],[3.46000003814697,20.2199993133545,18.1000003814697],[2.46499991416931,20.0100002288818,21.5],[3.19000005722046,20,24.3999996185303],[3.46000003814697,20.2199993133545,18.1000003814697],[5.25,17.9799995422363,10.3999996185303],[3.15000009536743,22.8999996185303,22.7999992370605],[3.46000003814697,20.2199993133545,18.1000003814697],[3.15000009536743,22.8999996185303,22.7999992370605],[2.46499991416931,20.0100002288818,21.5],[3.46000003814697,20.2199993133545,18.1000003814697],[3.44000005722046,18.8999996185303,17.7999992370605],[5.25,17.9799995422363,10.3999996185303],[3.5699999332428,15.8400001525879,14.3000001907349],[3.84500002861023,17.0499992370605,19.2000007629395],[3.51999998092651,16.8700008392334,15.5],[3.5699999332428,15.8400001525879,14.3000001907349],[2.76999998092651,15.5,19.7000007629395],[3.83999991416931,15.4099998474121,13.3000001907349],[3.5699999332428,15.8400001525879,14.3000001907349],[3.83999991416931,15.4099998474121,13.3000001907349],[3.84500002861023,17.0499992370605,19.2000007629395],[3.15000009536743,22.8999996185303,22.7999992370605],[5.25,17.9799995422363,10.3999996185303],[5.42399978637695,17.8199996948242,10.3999996185303],[3.15000009536743,22.8999996185303,22.7999992370605],[1.83500003814697,19.8999996185303,33.9000015258789],[2.46499991416931,20.0100002288818,21.5],[3.44000005722046,18.2999992370605,19.2000007629395],[3.77999997138977,18,15.1999998092651],[3.44000005722046,18.8999996185303,17.7999992370605],[3.44000005722046,18.2999992370605,19.2000007629395],[3.44000005722046,18.8999996185303,17.7999992370605],[2.77999997138977,18.6000003814697,21.3999996185303],[3.44000005722046,18.2999992370605,19.2000007629395],[3.73000001907349,17.6000003814697,17.2999992370605],[3.77999997138977,18,15.1999998092651],[3.44000005722046,18.2999992370605,19.2000007629395],[3.43499994277954,17.2999992370605,15.1999998092651],[3.73000001907349,17.6000003814697,17.2999992370605],[3.44000005722046,18.8999996185303,17.7999992370605],[3.77999997138977,18,15.1999998092651],[5.25,17.9799995422363,10.3999996185303],[4.07000017166138,17.3999996185303,16.3999996185303],[3.77999997138977,18,15.1999998092651],[3.73000001907349,17.6000003814697,17.2999992370605],[4.07000017166138,17.3999996185303,16.3999996185303],[3.73000001907349,17.6000003814697,17.2999992370605],[3.84500002861023,17.0499992370605,19.2000007629395],[4.07000017166138,17.3999996185303,16.3999996185303],[5.25,17.9799995422363,10.3999996185303],[3.77999997138977,18,15.1999998092651],[4.07000017166138,17.3999996185303,16.3999996185303],[5.34499979019165,17.4200000762939,14.6999998092651],[5.25,17.9799995422363,10.3999996185303],[4.07000017166138,17.3999996185303,16.3999996185303],[3.84500002861023,17.0499992370605,19.2000007629395],[5.34499979019165,17.4200000762939,14.6999998092651],[3.73000001907349,17.6000003814697,17.2999992370605],[3.43499994277954,17.2999992370605,15.1999998092651],[3.84500002861023,17.0499992370605,19.2000007629395],[5.25,17.9799995422363,10.3999996185303],[5.34499979019165,17.4200000762939,14.6999998092651],[5.42399978637695,17.8199996948242,10.3999996185303],[5.34499979019165,17.4200000762939,14.6999998092651],[3.83999991416931,15.4099998474121,13.3000001907349],[3.5699999332428,14.6000003814697,15],[5.34499979019165,17.4200000762939,14.6999998092651],[3.84500002861023,17.0499992370605,19.2000007629395],[3.83999991416931,15.4099998474121,13.3000001907349],[2.20000004768372,19.4699993133545,32.4000015258789],[2.46499991416931,20.0100002288818,21.5],[1.83500003814697,19.8999996185303,33.9000015258789],[2.20000004768372,19.4699993133545,32.4000015258789],[1.83500003814697,19.8999996185303,33.9000015258789],[1.93499994277954,18.8999996185303,27.2999992370605],[1.61500000953674,18.5200004577637,30.3999996185303],[1.93499994277954,18.8999996185303,27.2999992370605],[1.83500003814697,19.8999996185303,33.9000015258789],[3.83999991416931,15.4099998474121,13.3000001907349],[2.76999998092651,15.5,19.7000007629395],[3.5699999332428,14.6000003814697,15],[2.14000010490417,16.7000007629395,26],[1.51300001144409,16.8999996185303,30.3999996185303],[2.76999998092651,15.5,19.7000007629395],[1.51300001144409,16.8999996185303,30.3999996185303],[3.17000007629395,14.5,15.8000001907349],[2.76999998092651,15.5,19.7000007629395],[3.17000007629395,14.5,15.8000001907349],[3.5699999332428,14.6000003814697,15],[2.76999998092651,15.5,19.7000007629395]],"colors":[[0.745098054409027,0.745098054409027,0.745098054409027,1]],"centers":[[2.54500007629395,16.7266674041748,22.6666679382324],[3.00499987602234,16.7833347320557,19.1666679382324],[3.23666644096375,16.3899993896484,16.9333343505859],[2.98666667938232,15.9333333969116,18.3333339691162],[2.51000022888184,16.2200012207031,22.2333335876465],[2.44500017166138,17.4433345794678,23.2666683197021],[2.65833330154419,18.0766677856445,21.7333335876465],[3.27833342552185,16.9700012207031,18.4000015258789],[3.25,17.1133346557617,18.3000011444092],[3.25,17.5400009155273,18.466667175293],[3.03166675567627,17.9733333587646,20.533332824707],[2.43333339691162,18.8933334350586,25.533332824707],[2.15166664123535,18.993335723877,27.5],[1.81599998474121,18.0100002288818,27.8666667938232],[1.95666670799255,18.6766681671143,26.8333339691162],[1.99100005626678,17.4033355712891,26.3999996185303],[3.28833341598511,19.8866672515869,21.3000011444092],[3.37166666984558,19.5200004577637,19.0999984741211],[2.95666670799255,19.8166694641113,22.4333343505859],[3.14499998092651,18.980001449585,20.2000007629395],[2.73166656494141,19.1700019836426,25.0666694641113],[2.6266667842865,19.6399993896484,25.1000022888184],[3.60166692733765,16.9799995422363,17.8000011444092],[3.57333326339722,17.1233329772949,17.7000007629395],[3.03833341598511,20.0766677856445,21.3333339691162],[3.95333361625671,20.3666667938232,17.1000003814697],[3.02500009536743,21.0433330535889,20.8000011444092],[4.05000019073486,19.033332824707,15.4333343505859],[3.64499998092651,16.5866680145264,16.3333339691162],[3.39333343505859,15.5833339691162,15.7666664123535],[3.7516667842865,16.1000003814697,15.600001335144],[4.60799980163574,19.5666656494141,14.533332824707],[2.48333334922791,20.9366664886475,26.0666656494141],[3.5533332824707,18.3999996185303,17.4000015258789],[3.22000002861023,18.5999984741211,19.466667175293],[3.65000009536743,17.966667175293,17.2333335876465],[3.53499984741211,17.7333335876465,17.2333335876465],[4.15666675567627,18.2933349609375,14.466667175293],[3.8600001335144,17.6666679382324,16.2999992370605],[3.88166689872742,17.3500003814697,17.6333332061768],[4.36666679382324,17.7933330535889,14],[4.88833332061768,17.6000003814697,13.8333339691162],[4.42000007629395,17.2899990081787,16.7666664123535],[3.67000007629395,17.3166675567627,17.2333335876465],[5.33966636657715,17.7400016784668,11.8333339691162],[4.25166654586792,15.8100004196167,14.3333339691162],[4.34333324432373,16.6266670227051,15.7333335876465],[2.16666674613953,19.7933330535889,29.2666683197021],[1.99000000953674,19.4233322143555,31.2000026702881],[1.79500007629395,19.1066665649414,30.533332824707],[3.39333319664001,15.1700010299683,16],[2.14100027084351,16.3666667938232,25.3666687011719],[2.48433351516724,15.6333341598511,21.966667175293],[3.17000007629395,14.8666667938232,16.8333339691162]],"normals":[[0.973979830741882,-0.197567582130432,0.111042194068432],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.986729800701141,-0.0751636475324631,0.14392614364624],[0.973979830741882,-0.197567582130432,0.111042194068432],[-0.00282834167592227,-0.838648557662964,0.544665575027466],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.973979830741882,-0.197567582130432,0.111042194068432],[0.55743795633316,-0.695271074771881,0.453719139099121],[-0.00282834167592227,-0.838648557662964,0.544665575027466],[0.973979830741882,-0.197567582130432,0.111042194068432],[0.987354159355164,-0.0793445855379105,0.137245133519173],[0.55743795633316,-0.695271074771881,0.453719139099121],[0.973979830741882,-0.197567582130432,0.111042194068432],[0.986729800701141,-0.0751636475324631,0.14392614364624],[0.987354159355164,-0.0793445855379105,0.137245133519173],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.986729800701141,-0.0751636475324631,0.14392614364624],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.943355739116669,-0.255722314119339,0.211390823125839],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.960906684398651,-0.214893236756325,0.174583181738853],[-0.00282834167592227,-0.838648557662964,0.544665575027466],[0.850362598896027,-0.107382968068123,0.515123665332794],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.850362598896027,-0.107382968068123,0.515123665332794],[0.0281408578157425,0.0602334849536419,0.997787535190582],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.0281408578157425,0.0602334849536419,0.997787535190582],[0.98254257440567,0.0796554088592529,0.168122261762619],[0.960906684398651,-0.214893236756325,0.174583181738853],[0.98254257440567,0.0796554088592529,0.168122261762619],[0.943355739116669,-0.255722314119339,0.211390823125839],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.943355739116669,-0.255722314119339,0.211390823125839],[0.690273821353912,-0.645392894744873,0.327093333005905],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.690273821353912,-0.645392894744873,0.327093333005905],[0.781444668769836,-0.61491984128952,0.10591433942318],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.974473774433136,-0.212200105190277,0.0732938274741173],[0.993774592876434,-0.0446945428848267,0.102051235735416],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.781444668769836,-0.61491984128952,0.10591433942318],[0.974473774433136,-0.212200105190277,0.0732938274741173],[0.825759768486023,-0.534464716911316,0.180189445614815],[0.993774592876434,-0.0446945428848267,0.102051235735416],[0.986729800701141,-0.0751636475324631,0.14392614364624],[0.949337899684906,-0.292173147201538,0.115725815296173],[0.937281250953674,-0.248039111495018,0.2449089884758],[0.0649462193250656,0.0490399524569511,0.996683061122894],[0.949337899684906,-0.292173147201538,0.115725815296173],[0.989402294158936,0.0280364267528057,0.142467722296715],[0.937281250953674,-0.248039111495018,0.2449089884758],[0.949337899684906,-0.292173147201538,0.115725815296173],[0.0649462193250656,0.0490399524569511,0.996683061122894],[0.797985970973969,0.543122529983521,0.261220753192902],[0.949337899684906,-0.292173147201538,0.115725815296173],[0.943355739116669,-0.255722314119339,0.211390823125839],[0.989402294158936,0.0280364267528057,0.142467722296715],[0.949337899684906,-0.292173147201538,0.115725815296173],[0.690273821353912,-0.645392894744873,0.327093333005905],[0.943355739116669,-0.255722314119339,0.211390823125839],[0.949337899684906,-0.292173147201538,0.115725815296173],[0.797985970973969,0.543122529983521,0.261220753192902],[0.690273821353912,-0.645392894744873,0.327093333005905],[0.850362598896027,-0.107382968068123,0.515123665332794],[-0.00282834167592227,-0.838648557662964,0.544665575027466],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.850362598896027,-0.107382968068123,0.515123665332794],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.0281408578157425,0.0602334849536419,0.997787535190582],[0.937281250953674,-0.248039111495018,0.2449089884758],[0.797985970973969,0.543122529983521,0.261220753192902],[0.0649462193250656,0.0490399524569511,0.996683061122894],[0.937281250953674,-0.248039111495018,0.2449089884758],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.947959423065186,-0.29425448179245,0.121602900326252],[0.937281250953674,-0.248039111495018,0.2449089884758],[0.947959423065186,-0.29425448179245,0.121602900326252],[0.797985970973969,0.543122529983521,0.261220753192902],[0.937281250953674,-0.248039111495018,0.2449089884758],[0.989402294158936,0.0280364267528057,0.142467722296715],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.55743795633316,-0.695271074771881,0.453719139099121],[0.0290173459798098,0.00565842911601067,0.999562919139862],[-0.00282834167592227,-0.838648557662964,0.544665575027466],[0.55743795633316,-0.695271074771881,0.453719139099121],[0.987354159355164,-0.0793445855379105,0.137245133519173],[0.0873338431119919,0.187608391046524,0.978353679180145],[0.55743795633316,-0.695271074771881,0.453719139099121],[0.0873338431119919,0.187608391046524,0.978353679180145],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.947959423065186,-0.29425448179245,0.121602900326252],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.540428876876831,0.587716400623322,0.602101385593414],[0.947959423065186,-0.29425448179245,0.121602900326252],[0.960712850093842,-0.254508465528488,0.1107077896595],[0.797985970973969,0.543122529983521,0.261220753192902],[0.98254257440567,0.0796554088592529,0.168122261762619],[0.949717462062836,0.174773424863815,0.259790360927582],[0.989402294158936,0.0280364267528057,0.142467722296715],[0.98254257440567,0.0796554088592529,0.168122261762619],[0.989402294158936,0.0280364267528057,0.142467722296715],[0.943355739116669,-0.255722314119339,0.211390823125839],[0.98254257440567,0.0796554088592529,0.168122261762619],[0.268807113170624,0.486844301223755,0.831098854541779],[0.949717462062836,0.174773424863815,0.259790360927582],[0.98254257440567,0.0796554088592529,0.168122261762619],[0.0281408578157425,0.0602334849536419,0.997787535190582],[0.268807113170624,0.486844301223755,0.831098854541779],[0.989402294158936,0.0280364267528057,0.142467722296715],[0.949717462062836,0.174773424863815,0.259790360927582],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.48708838224411,0.860200464725494,0.150996834039688],[0.949717462062836,0.174773424863815,0.259790360927582],[0.268807113170624,0.486844301223755,0.831098854541779],[0.48708838224411,0.860200464725494,0.150996834039688],[0.268807113170624,0.486844301223755,0.831098854541779],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.48708838224411,0.860200464725494,0.150996834039688],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.949717462062836,0.174773424863815,0.259790360927582],[0.48708838224411,0.860200464725494,0.150996834039688],[0.526984393596649,0.787721931934357,0.319032371044159],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.48708838224411,0.860200464725494,0.150996834039688],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.526984393596649,0.787721931934357,0.319032371044159],[0.268807113170624,0.486844301223755,0.831098854541779],[0.0281408578157425,0.0602334849536419,0.997787535190582],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.26840153336525,-0.205617994070053,0.941106736660004],[0.526984393596649,0.787721931934357,0.319032371044159],[0.540428876876831,0.587716400623322,0.602101385593414],[0.526984393596649,0.787721931934357,0.319032371044159],[0.0873338431119919,0.187608391046524,0.978353679180145],[0.936242580413818,0.149812832474709,0.317814260721207],[0.526984393596649,0.787721931934357,0.319032371044159],[0.0290173459798098,0.00565842911601067,0.999562919139862],[0.0873338431119919,0.187608391046524,0.978353679180145],[0.690273821353912,-0.645392894744873,0.327093333005905],[0.797985970973969,0.543122529983521,0.261220753192902],[0.960712850093842,-0.254508465528488,0.1107077896595],[0.690273821353912,-0.645392894744873,0.327093333005905],[0.960712850093842,-0.254508465528488,0.1107077896595],[0.781444668769836,-0.61491984128952,0.10591433942318],[0.974473774433136,-0.212200105190277,0.0732938274741173],[0.781444668769836,-0.61491984128952,0.10591433942318],[0.960712850093842,-0.254508465528488,0.1107077896595],[0.0873338431119919,0.187608391046524,0.978353679180145],[0.987354159355164,-0.0793445855379105,0.137245133519173],[0.936242580413818,0.149812832474709,0.317814260721207],[0.986729800701141,-0.0751636475324631,0.14392614364624],[0.993774592876434,-0.0446945428848267,0.102051235735416],[0.987354159355164,-0.0793445855379105,0.137245133519173],[0.993774592876434,-0.0446945428848267,0.102051235735416],[0.685857057571411,-0.684910655021667,0.245962426066399],[0.987354159355164,-0.0793445855379105,0.137245133519173],[0.685857057571411,-0.684910655021667,0.245962426066399],[0.936242580413818,0.149812832474709,0.317814260721207],[0.987354159355164,-0.0793445855379105,0.137245133519173]],"ignoreExtent":false,"flags":32771},"1243":{"id":1243,"type":"text","material":{"lit":false,"margin":0,"floating":true,"edge":[0,1,1]},"vertices":[["NaN",4,1]],"colors":[[0,0,0,1]],"texts":[["wt"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":[["NaN",4,1]],"family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"1244":{"id":1244,"type":"text","material":{"lit":false,"margin":1,"floating":true,"edge":[1,1,1]},"vertices":[["NaN",4,1]],"colors":[[0,0,0,1]],"texts":[["qsec"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":[["NaN",4,1]],"family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"1245":{"id":1245,"type":"text","material":{"lit":false,"margin":2,"floating":true,"edge":[1,1,1]},"vertices":[["NaN",4,1]],"colors":[[0,0,0,1]],"texts":[["mpg"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":[["NaN",4,1]],"family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"1232":{"id":1232,"type":"light","vertices":[[0,0,1]],"colors":[[1,1,1,1],[1,1,1,1],[1,1,1,1]],"viewpoint":true,"finite":false},"1231":{"id":1231,"type":"background","material":{},"colors":[[0.298039227724075,0.298039227724075,0.298039227724075,1]],"centers":[[0,0,0]],"sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"1233":{"id":1233,"type":"background","material":{"lit":false,"back":"lines"},"colors":[[1,1,1,1]],"centers":[[0,0,0]],"sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"1237":{"id":1237,"type":"bboxdeco","material":{"front":"lines","back":"lines"},"vertices":[[2,"NA","NA"],[3,"NA","NA"],[4,"NA","NA"],[5,"NA","NA"],["NA",16,"NA"],["NA",18,"NA"],["NA",20,"NA"],["NA",22,"NA"],["NA","NA",15],["NA","NA",20],["NA","NA",25],["NA","NA",30]],"colors":[[0,0,0,1]],"axes":{"mode":["pretty","pretty","pretty"],"step":[1,2,5],"nticks":[5,5,5],"marklen":[15,15,15],"expand":[1.02999997138977,1.02999997138977,1.02999997138977]},"draw_front":true},"1242":{"id":1242,"type":"bboxdeco","material":{"front":"lines","back":"lines"},"vertices":[[2,"NA","NA"],[3,"NA","NA"],[4,"NA","NA"],[5,"NA","NA"],["NA",16,"NA"],["NA",18,"NA"],["NA",20,"NA"],["NA",22,"NA"],["NA","NA",15],["NA","NA",20],["NA","NA",25],["NA","NA",30]],"colors":[[0,0,0,1]],"axes":{"mode":["pretty","pretty","pretty"],"step":[1,2,5],"nticks":[5,5,5],"marklen":[15,15,15],"expand":[1.02999997138977,1.02999997138977,1.02999997138977]},"draw_front":true},"1234":{"id":1234,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":[1234,1235],"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,61.8133888244629],"modelMatrix":[[3.72904825210571,0,0,-12.9342031478882],[0,0.593824625015259,0.583181440830231,-24.0219917297363],[0,-1.63151967525482,0.212260693311691,-36.0055465698242],[0,0,0,1]],"projMatrix":[[3.73205065727234,0,0,0],[0,1.86602532863617,0,0],[0,0,-3.86370325088501,-222.830108642578],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.342020143325668,0.939692620785909,0],[0,-0.939692620785909,0.342020143325668,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[3.72904825210571,1.73622703552246,0.620608747005463],"viewport":{"x":0,"y":0,"width":0.5,"height":1},"zoom":1,"bbox":[1.51300001144409,5.42399978637695,14.5,22.8999996185303,10.3999996185303,33.9000015258789],"windowRect":[116,264,372,520],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgl/fonts/FreeSans.ttf","maxClipPlanes":6,"glVersion":2.1,"activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"inherit"},"objects":[1237,1236,1238,1239,1240,1232],"parent":1228,"subscenes":[],"flags":36112},"1235":{"id":1235,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":[1234,1235],"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,61.8133888244629],"modelMatrix":[[3.72904825210571,0,0,-12.9342031478882],[0,0.593824625015259,0.583181440830231,-24.0219917297363],[0,-1.63151967525482,0.212260693311691,-36.0055465698242],[0,0,0,1]],"projMatrix":[[3.73205065727234,0,0,0],[0,1.86602532863617,0,0],[0,0,-3.86370325088501,-222.830108642578],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.342020143325668,0.939692620785909,0],[0,-0.939692620785909,0.342020143325668,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[3.72904825210571,1.73622703552246,0.620608747005463],"viewport":{"x":0.5,"y":0,"width":0.5,"height":1},"zoom":1,"bbox":[1.51300001144409,5.42399978637695,14.5,22.8999996185303,10.3999996185303,33.9000015258789],"windowRect":[116,264,372,520],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgl/fonts/FreeSans.ttf","maxClipPlanes":6,"glVersion":2.1,"activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"inherit"},"objects":[1242,1241,1243,1244,1245,1232],"parent":1228,"subscenes":[],"flags":34067},"1228":{"id":1228,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":1228,"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,3.86370325088501],"modelMatrix":[[1,0,0,0],[0,0.342020153999329,0.939692616462708,0],[0,-0.939692616462708,0.342020153999329,-3.86370325088501],[0,0,0,1]],"projMatrix":[[3.73205089569092,0,0,0],[0,3.73205089569092,0,0],[0,0,-3.86370325088501,-13.9282026290894],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.342020143325668,0.939692620785909,0],[0,-0.939692620785909,0.342020143325668,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[1,1,1],"viewport":{"x":0,"y":0,"width":1,"height":1},"zoom":1,"bbox":[3.40282346638529e+38,-3.40282346638529e+38,3.40282346638529e+38,-3.40282346638529e+38,3.40282346638529e+38,-3.40282346638529e+38],"windowRect":[116,264,372,520],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgl/fonts/FreeSans.ttf","maxClipPlanes":6,"glVersion":2.1,"activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"replace"},"objects":[1233,1232,1234,1235],"subscenes":[1234,1235],"flags":36115}},"crosstalk":{"key":[],"group":[],"id":[],"options":[]},"width":480,"height":480,"context":{"shiny":false,"rmarkdown":null},"players":[],"webGLoptions":{"preserveDrawingBuffer":true}},"evals":[],"jsHooks":[]}