cellToExport = Plot.plot({
style: ({fontSize: 16}),
marginBottom: 50,
marginTop: 40,
width: width,
height: 800,
fx: {axis: null},
fy: {axis: null},
x: {grid: true, domain: [2, 21]},
y: {frid: true, domain: [2, 14]},
marks: [
Plot.frame({ strokeOpacity: 1 }),
Plot.dot(data1, { fx: (d) => niceFx(d.class), fy: (d) => niceFy(d.class), x: "x", y: "y", stroke: "#ff4a13", fill: "orange", tip: true }),
Plot.linearRegressionY(data1, { fx: (d) => niceFx(d.class), fy: (d) => niceFy(d.class), x: "x", y: "y", stroke: "blue", r: 5, fill: "orange", tip: true , ci: confidence})
]
})