Introduction

Line graphs are indispensable visual representations of linear relationships between variables. Commonly used in science to quantify unknown concentrations in samples from known standards, it plays an integral role in biomolecule/chemical quantification (e.g. Bradford assay for proteins). It is also used to display trends and data changes, or even extrapolated to predict outcomes. As such, its use extends beyond experimental sciences and statistics to school education. While computers can do the graph plotting accurately, much improvement remains for its portability and accessibility. This is particularly useful for outdoor field tests (e.g. environmental monitoring) where desktop access are limited. Thus StanXY is an efficient and portable solution that speeds up the graphing process and reduces human error.

Smartphone applications making data gathering and analysis easier have become increasingly popular in research (www.biospectrumasia.com/biospectrum/opinion/220592/use-smartphone-apps-biomedical-research). They can be exploited to plot graphs quickly with full portability, thus boosting productivity. Other examples of apps that improves research productivity include DNAApp (Nguyen et al. 2014), GelApp (Sim et al. 2015), the latter transforms the smartphone into a Gel-Documentation equipment and improves accuracy of experiments (Ling et al. 2015). These applications are not only used for on spot graphing analysis by scientists and engineers, but also applicable in educational institutes for science students.

Riding on the smartphone and mobile devices, StanXY conveniently, efficiently and accurately plots graphs with a minimalist user interface. Users need to only key in the known X and Y coordinates and the unit labels for both axes and press the “Tabulate graph” button. StanXY will plot the points and generate a straight line graph (Fig. 1). Users can zoom in and out by pinching in and out on the graph. Unknown values can then be keyed in and the unknown determined immediately. Both the equation and coefficient of determination of the line of best fit are also provided for reports, all within a few seconds. For better visualization, users can customise the graph by changing the thickness of the line and the background colour of the graph based on the 2 available themes (default/contrast). This can then be captured using the screenshot function of the mobile devices and be included in reports.

Fig. 1
figure 1

Entering chart values (left) and the graph with the line of best fit (right)

To ensure functionality regardless of internet connectivity, these features are all built into the app without the need for a mobile network/WIFI or access to multiple websites.

Material and methods

StanXY for Android was developed using version 4.2 of the Eclipse Integrated Development Environment, Juno, and ‘AChartEngine, developed by 4ViewSoft (http://www.achartengine.org/). ‘AChartEngine’ is licensed under the Code Project Open License ((CPOL) 1.02).

The coefficient of determination (R2) is calculated based on the formula:

$$ {\left(\mathrm{n}\Sigma \mathrm{x}\mathrm{y}\ \hbox{--}\ \left(\Sigma \mathrm{x}\right)\left(\ \Sigma \mathrm{y}\right)\ /\ \left(\surd \mathrm{n}\kern0.5em {\Sigma \mathrm{y}}^2\right)\ \left(\surd \mathrm{n}\ {\Sigma \mathrm{x}}^2\right)\right)}^2 $$
Σx:

Summation of all the X values

Σy:

Summation of all the Y values

n:

Number of X/Y values

Line Equation and R2 values

With the generated line of best fit, it is possible to determine the unknown Y value by entering its corresponding X value and vice versa (Fig. 2). The unknown value is plotted on the graph in a different colour. The application also calculates the equation of the line and coefficient of determination (R2) of the graph which is shown by tapping on the top right “Statistics” button. The equation of the straight line is shown in the form of y = mx + c where "m" is the gradient/slope and "c" is the y-intercept. R2 has a value between "0" and "1", and shows how well the line of best fit fits the coordinates. The closer the value is to "1" indicates that the standard coordinate fall well within the line of best fit.

Fig. 2
figure 2

A graph with a calculated unknown X value, a new point is plotted on the graph in dark green

Customizable features

The graph generated by StanXY is customisable based on the user’s preferences. Users can easily change the colour scheme of the graph (default/contrast). The thickness of the points and line of the graph can also be adjusted with the slide bar (Fig. 3).

Fig. 3
figure 3

Default graph (left), increased thickness of points and line (middle) and graph with the contrast theme (right)

Uses and Applications

StanXY can be used with common biomedical and chemical lab quantification experiments that require plotting of standard curves. These includes Enzyme-linked immunosorbent (ELISA), Bradford, Folin-Lowry and many others. The app can be used in schools in science classes and also as a guide for plotting lines of best fit.

Conclusion

StanXY is a standalone Android application that brings convenience, efficiency and accuracy to graph plotting. It does not require internet connectivity to support its features and allows users to easily plot graphs on the go without the expense of accuracy and time.

Availability and Resources

The StanXY application is developed for the Android platform and is freely available on the Google Play Store. More details on the app can be found at www.facebook.com/APDLab; www.bii.a-star.edu.sg/research/trd/apd.php

The StanXY user guide is available at http://tinyurl.com/StanXY, and a video tutorial is also available on the Google Play Store.