Summary Data Visualization
Summary Data Visualization
5- Continuous sketch:
interactive programs are drawn as series of frames by add setup() & drawn()
6- To package your current sketch as applet inside sketch folder
To open your sketch in browser by open (index.html)
3-
To mix lines and points in the representation to create a background line can Modify the
end of draw( )
4- Rollovers: To highlight individual points when the mouse is nearby, you can implement a
rollover effect in your plotting function. This involves checking the distance between the
mouse pointer and each point, and if the mouse is close enough to a point, you highlight
that point.
5- prevent the spikiness of the plot:(Refine phase of process)
Connecting the points with a curve is often a better option because it prevents the
spikiness of the plot from overwhelming the data itself.
By: curveVertex( ) it connects successive points by fitting them to a curve.
Note: it is similar to vertex()
Vertex() is fitting point to a straight line
Notes of Lecture 6
1- Where to Find Data:
The first tool is good search engine.
Effective searching using the proper keywords.
Government web sites are often useful sources of data because the information collection owned
by the public without copyright
some organizations make their data available through publicly documented and supported APIs
2- Tools for Acquiring Data from the Internet:
from local or from http:// addresses:
o Processing provides the loadStrings( ), loadBytes( ), and loadImage( ) methods
6- you can collapse the Acquire and Parse steps of the process together for greater efficiency.
o Rather than read a large file into memory and then parse it, it’s often better to parse the
data while it’s being read.
A common use of the File object is: to list files in a directory, which is handled with the list( )
method of the File class