Plot.plot({
margin: 80,
inset: 80,
width: 640,
height: 400,
marks: [
Plot.dot(data, {filter: d => d.CountryCode=="GBR" && d.Gender=="Female", x: "Gender", y: "Mean"})
],
x: {
type: "point",
label: "Gender",
labelAnchor: "left",
labelOffset: 10,
nice: true,
tickPadding: 20,
axis: "top",
line: true,
grid: true,
legend: true,
},
caption: "This is my first dataViz using Observable Plot. [12 March 2023]",
style: {
background: "lightGrey",
fontFamily: "helvetica",
color: "navy",
padding: "5px"
}
})