Logarithmic scales

Declaring the type property of an axis object as logarithmic will render its data according to a logarithmic scale. Change one of the axes of the previous example to type: 'logarithmic' and the line will become a curve, as shown as follows. It seems that the distribution of data points has improved in this visualization. They are a bit closer and the chart reveals some data that was not visible before:

Making one of the scales logarithmic improves the scatter chart, revealing hidden data
Code: Numeric/numeric-2-log.html

We can improve it. Since both scales contain the same population data, we can declare the type of both axes as logarithmic, as shown as follows. Now the curve becomes a line again, the points are much closer and easier to compare, and even more hidden data is revealed:

An even better scatterplot with two logarithmic axes
Code: Numeric/numeric-3-log.html

The full code for these last two examples is in Numeric/numeric-2-log.html and numeric-3-log.html.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.34.169