我有两个数据集如下所示:
public void mouseClick(MouseEvent mouse) {
if(mouse.getClickCount() == 1) {
root.getChildren().remove(gCrab);
gCrab.getChildren().clear();
gCrab.getChildren().add(animals.addCrab());
root.getChildren().add(gCrab);
}
else if(mouse.getClickCount() == 2) {
root.getChildren().remove(gCrab);
gCrab.getChildren().clear();
gCrab.getChildren().add(animals.deleteCrab());
root.getChildren().add(gCrab);
}
}
#datat2
#dataset 1
x
y
z
1
24.22055
22.25462
53.52483
2
24.61821
21.88752
53.49427
3
24.60858
21.89172
53.49971
4
24.59630
21.88356
53.52014
5
24.66904
21.86319
53.46777
6
24.68200
21.80782
53.51018
7
24.74323
21.74510
53.51168
8
24.84038
21.70914
53.45048
9
25.02606
21.68861
53.28533
10
25.00763
21.66829
53.32408
11
24.99861
21.67942
53.32197
12
25.00901
21.67475
53.31623
13
24.99273
21.67994
53.32733
14
24.98789
21.67462
53.33749
15
24.99308
21.67405
53.33287
16
24.97615
21.67494
53.34891
17
24.95720
21.66842
53.37439
18
24.95962
21.65091
53.38947
19
24.93451
21.66570
53.39978
20
25.08111
21.68427
53.23462
21
24.97653
21.66878
53.35469
22
24.92734
21.67110
53.40156
23
24.96208
21.66772
53.37020
24
25.03111
21.63123
53.33767
25
25.00242
21.64916
53.34843
26
24.95385
21.65174
53.39441
27
24.99345
21.65686
53.34969
28
25.03311
21.63292
53.33398
29
24.93516
21.64039
53.42445
30
24.95163
21.53591
53.51247
31
24.94859
21.64633
53.40507
32
25.07071
21.62177
53.30752
33
25.15814
21.61304
53.22882
34
25.22433
21.60609
53.16958
35
25.31630
21.59400
53.08970
36
25.22823
21.60413
53.16764
37
25.34902
21.59069
53.06029
38
25.41180
21.58264
53.00556
39
25.40885
21.58277
53.00838
40
25.35868
21.57736
53.06396
41
25.34709
21.57457
53.07834
42
25.24046
21.57674
53.18280
43
25.31097
21.56562
53.12341
44
25.32868
21.49258
53.17874
45
25.41141
21.48584
53.10275
46
24.92474
21.74852
53.32674
47
24.90951
21.73081
53.35968
48
24.99270
21.75594
53.25136
49
25.00520
21.66646
53.32834
50
24.94954
21.70782
53.34264
51
25.15449
21.67075
53.17476
52
25.10164
21.66456
53.23380
53
25.03112
21.64514
53.32374
54
24.97345
21.65763
53.36892
55
25.03352
21.66863
53.29785
56
25.11059
21.64658
53.24283
57
25.05391
21.63672
53.30937
58
25.05766
21.62677
53.31556
59
25.06176
21.65441
53.28384
60
25.17039
21.61994
53.20967
61
25.17868
21.61754
53.20378
62
25.10530
21.65159
53.24311
63
25.05680
21.62676
53.31644
64
25.08028
21.61157
53.30816
65
25.13700
21.60181
53.26118
66
25.36559
21.65121
52.98320
67
25.06363
21.61303
53.32334
68
25.26306
21.61424
53.12270
69
25.16708
21.61419
53.21872
70
25.14826
21.62580
53.22594
71
25.06046
21.59797
53.34158
72
24.99418
21.61477
53.39105
73
25.19738
21.58790
53.21472
74
25.20072
21.58918
53.21010
75
25.24073
21.61834
53.14093
76
25.18705
21.56725
53.24570
77
25.18142
21.61358
53.20500
78
25.16747
21.61456
53.21797
79
25.12350
21.57619
53.30031
80
25.38767
21.59200
53.02033
81
25.37099
21.58095
53.04806
82
25.30558
21.52847
53.16595
83
25.35074
21.57284
53.07643
84
25.33528
21.56755
53.09717
85
25.32482
21.56847
53.10672
86
25.32328
21.49455
53.18217
我编写了一个代码来根据ggtern包绘制内核密度轮廓。
x1
y1
z1
1
24.70200
21.87799
53.42002
2
24.64061
21.89606
53.46333
3
24.64624
21.90340
53.45036
4
24.69900
21.88590
53.41510
5
24.68064
21.89083
53.42853
6
24.65854
21.90291
53.43855
7
24.75148
21.84910
53.39942
8
24.58633
21.93269
53.48098
9
24.73463
21.87262
53.39274
10
24.59992
21.87465
53.52543
11
24.65293
21.90029
53.44677
12
24.60753
21.87801
53.51446
13
24.62394
21.87661
53.49945
14
25.34160
21.64635
53.01205
15
24.71006
21.83719
53.45276
16
24.67719
21.90565
53.41716
我想要做的下一步是将plot1与plot2重叠。我想知道是否有人知道如何实现这一目标。谢谢。