Я хотел бы создать контурную диаграмму на плоскости xy из данных концентрации в следующих цветных точках на первом рисунке.У меня нет угловых точек на каждой высоте, поэтому мне нужно экстраполировать концентрацию на края плоскости xy (xlim = c (0,335), ylim = c (0,426)).
Графический html-файл точек доступен здесь: https://leeds365 -my.sharepoint.com /: u: / r / personal / cenmk_leeds_ac_uk / Документы / Документы / HECOIRA / Палата% 20CO2% 20 Эксперименты/Sensors.html?csf=1&e=HiX8fF
dput(df)
structure(list(Sensor = structure(c(11L, 12L, 13L, 14L, 15L,
16L, 17L, 18L, 19L, 20L, 21L, 22L, 23L, 24L, 25L, 26L, 27L, 28L,
29L, 1L, 3L, 4L, 5L, 6L, 8L, 30L, 31L, 32L, 33L, 34L, 35L), .Label = c("N1",
"N2", "N3", "N4", "N5", "N6", "N7", "N8", "N9", "Control", "A1",
"A10", "A11", "A12", "A13", "A14", "A15", "A16", "A17", "A18",
"A19", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "R1",
"R2", "R3", "R4", "R5", "R6"), class = "factor"), calCO2 = c(2237,
2389.5, 2226.5, 2321, 2101.5, 1830.5, 2418, 2356.5, 435, 2345.5,
2376, 2451, 2397, 2466, 2518.5, 2087, 2463, 2256.5, 2345.5, 3506,
2950, 3386, 2511, 2385, 3441, 2473, 2357.5, 2052.5, 2318, 1893.5,
2251), x = c(83.75, 167.5, 167.5, 167.5, 251.25, 167.5, 251.25,
251.25, 0, 83.75, 251.25, 167.5, 251.25, 83.75, 83.75, 83.75,
83.75, 251.25, 167.5, 335, 0, 0, 335, 167.5, 167.5, 167.5, 0,
335, 335, 167.5, 167.5), y = c(213, 319.5, 319.5, 110, 319.5,
213, 110, 110, 356, 213, 319.5, 110, 213, 110, 319.5, 319.5,
110, 213, 213, 0, 0, 426, 426, 426, 0, 213, 213, 70, 213, 426,
0), z = c(155, 50, 155, 155, 155, 226, 50, 155, 178, 50, 50,
50, 50, 155, 50, 155, 50, 155, 50, 0, 0, 0, 0, 0, 0, 0, 130,
50, 120, 130, 130), Type = c("Airnode", "Airnode", "Airnode",
"Airnode", "Airnode", "Airnode", "Airnode", "Airnode", "Airnode",
"Airnode", "Airnode", "Airnode", "Airnode", "Airnode", "Airnode",
"Airnode", "Airnode", "Airnode", "Airnode", "Naveed", "Naveed",
"Naveed", "Naveed", "Naveed", "Naveed", "Rotronic", "Rotronic",
"Rotronic", "Rotronic", "Rotronic", "Rotronic")), .Names = c("Sensor",
"calCO2", "x", "y", "z", "Type"), row.names = c(NA, -31L), class = "data.frame")
require(plotly)
plot_ly(data = subset(df,z==0), x=~x,y=~y, z=~calCO2, type = "contour") %>%
layout(
xaxis = list(range = c(340, 0), autorange = F, autorange="reversed"),
yaxis = list(range = c(0, 430)))
Я пытаюсь найти что-то подобное.Любая помощь будет высоко ценится.