//For some reason I thought we had Friday to work on this as well. I have been trying various options for radio buttons and cannot get them to work. I can either make the graphs or the radio buttons. I was, however, able to fix the colors. Apparently, for the majority of the colors I had added an extra number at the end, so it looked like fill(x,x,x,x) and the final number resulted in the transparent look. I will continue to play with this code and attempt to get radio buttons to work to plot each graph as a separate graph. var table; function preload() { table = loadTable("erodo_results_all.csv","csv","header") } function setup() { createCanvas(2000,300) background(255,255,255) var rows = table.getRows() for (var r = 0; r < rows.length; r++) { var x_radial = rows[r].getNum("Radial") var height_start = rows[r].getNum("Erod_start") var height_500 = rows[r].getString("Erod_500") var height_1k = rows[r].getString("Erod_1k") var height_5k = rows[r].getNum("Erod_5k") var height_10k = rows[r].getNum("Erod_10k") var height_50k = rows[r].getNum("Erod_50k") var height_100k = rows[r].getNum("Erod_100k") var height_500k = rows[r].getNum("Erod_500k") //rescale the values to plot rightside up in the canvas and rename columns to x, y for use in drawing var x = map(x_radial,0,1990,0,width) var y = map(height_start,0,145,height,0) //create the dot representing the point and repeat for the different layers ellipse(x,y,10,10) fill(45, 0, 0) stroke(0,0,0) var y2 = map(height_500,0,145,height,0) ellipse(x,y2,10,10) fill(0,75, 0) stroke(0,0,0) var y3 = map(height_1k,0,145,height,0) ellipse(x,y3,10,10) fill(0, 0, 105) stroke(0,0,0) var y4 = map(height_5k,0,145,height,0) ellipse(x,y4,10,10) fill(135, 135, 0) stroke(0,0,0) var y5 = map(height_10k,0,145,height,0) ellipse(x,y5,10,10) fill(0, 165, 165) stroke(0,0,0) var y6 = map(height_50k,0,145,height,0) ellipse(x,y6,10,10) fill(195, 0, 195) stroke(0,0,0) var y7 = map(height_100k,0,145,height,0) ellipse(x,y7,10,10) fill(0, 225, 105) stroke(0,0,0) var y8 = map(height_500k,0,145,height,0) ellipse(x,y8,10,10) fill(255, 255, 255) stroke(0,0,0) } }