Only now can we start thinking about data and presentation.
alt.Chart(random_df).mark_point().encode( alt.X("a"), alt.Y("c"), alt.Color("b"), alt.Size("c"), alt.Shape("a:N"), alt.Fill("b"), alt.Opacity("b"), )
alt.Chart(random_df).mark_line().encode( x="a", y="c", )`
Altair Channels
X, Y
Angle
Radius
Size
Color
Opacity
Fill
Shape
What about?
Derived Properties
X
Y
What about volume?
Stevens (1975): Human response to sensory stimulus is characterized by a power law with different exponents with different stimuli.
perception = (magnitude of sensation)a
Smaller a exponent: harder to perceive changes.
Stevens measured values of a by exposing people to varied stimulus and asking them to compare magnitudes.
TODO: example of 2D decomposition of a graph
Wavelengths of light are perceived as particular colors:
In practice: we almost never see monochromatic color, light sources emit a spectrum & we perceive peaks.
TODO: slides from Alex maybe? or drop?
TODO: https://docs.google.com/presentation/d/1avOsobdcsTG6qaDVCSesIOBFcfxjH12d/edit#slide=id.p27 TODO: (also 33 and 34)
Identify, Group, Layer, Highlight
You will often see a fourth channel: RGBA, HSLA.
This is known as alpha transparency (translucency).
This has to do with how the program in question blends the colors.
By default, the second color drawn overdraws the first.
With translucency we can get a sense of depth without resorting to 3D.
TODO: example
Thanks to Alex Hale, Andrew McNutt, and Jessica Hullman for sharing their materials.
credit: https://en.wikipedia.org/wiki/File:Linear_visible_spectrum.svg
source https://commons.wikimedia.org/wiki/File:Cone-fundamentals-with-srgb-spectrum.svg