Labs

Lab 4

Visualization

Writeup:

  1. We want to use continuous ratio data in order to see the range of the values of the lines that intersect each axis. If we used categorical data, we would not be able to plot them in a specific order and all the lines for each category would converge into one point when it hits the respective axis. We can see a similar effect of this problem on the example graph in the lab assignment sheet. There is a color map applied to time, so we can see how the values for each axis relate to the time of day. For example, cooler temperatures tend to occur early in the morning, whereas warmer temperatures occur later in the day. We can also see how uncorrelated temperature is to conductance. However, it’s much harder to examine correlations at specific dates because they converge for their respective day. Thus, we can see that if we had a categorical axis, all the lines would converge to a single point, and it would be much harder to determine correlations among the other axes with the categorical one.

Continue reading

Lab 2

Visualization

Writeup:

  1. scaleTime is used for domains expressed as an array of dates. We used scaleTime for our x axis in this lab because we were working with time series data. scaleLinear is used for continuous domains. We used scaleLinear for our y axis values because they were a range of numbers. scaleOrdinal is used for discrete domains, such as names or categories. We could use this with the webtree data when looking at classes or departments. We used scaleBand, which is similar, but it is better when working with bar charts.

Continue reading