I’m thinking of creating a library for drawing graphs in p5 sketch. We may provide options like where the origin is, dimensions of the graph, width of each unit in each axes, labels, function to be plotted etc. A graph will be created with the function plotted in the sketch according to these values. Are there any other libraries that exist already for this purpose?
Yes, Grafica.js is on the p5js.org website. I use it, but it hasn’t been actively maintained for a while, so I would recommend forking the library and using it as a basis to make your own. Also, message me if you have any questions, since I’ve worked with it quite a bit.