This is one of the series of examples, where we step by step introduce new chart properties for the same set of charts.
Here, we show how to draw line plots. Let's add a diogonal line to the upper scatter plot and fitted curves for both drugs to the bottom one. We also use colour to indicate the samples, where curvefitting wasn't succesfull. Red dots on the correlation scatterplots show cell lines with bad fitting for at least one of the two selected drugs.
The data used here are generated in a drug-screening experiment. 50 drugs at 5 different concentrations were tested against 21 pancreatic cancer cell lines. The heatmap shows drug-drug correlation. Like in the previous example, a click on a cell of the heatmap reveals the underlying statistics by demonstrating on the scatter plot (right upper corner) the values of avarage inhibition for all tested cell lines and the two selected drugs. By clicking on a data point one can select a cell line, and thus change the third plot (right bottom corner) that demonstrates individual inhibition percent values for the two selected drugs and the selected cell line.
A user of our framework can create apps with very little code. Bellow we show the part of the code that hasn't been explained in previous examples. You can find the complete code at the bottom of the page.
|
Click on all the yellow bubbles
( Some lines of code, that have been already described in the previous examples, were omitted for the sake of simplicity. At the bottom of the page you can find the complete code. The In this dataset for each sample we have all the parameters of the fitted sigmoid curve: the lower asymptote
( Now both scatter plots are parts of charts that have several layers. Note, that setting an ID for a layer is
optional. For instance, the ID of scatter plot layer on the first plot will be automatically set to Here, we fix the aspect ratio for x and y axes to 1. Besides defining colours for each point directly (using Here, for each point we calculate the squared root of sum of squared residuals for the selected cell line and both selected drug and use this value to define colours. The default set of colours for a continuous colour scale is
By default the domain of the
Here, we add a diagonal line to the plot.
Here, we add add fitted curves for both drugs to the plot. Each line in Here, we have only one line y = x and thus the second argument is omitted. The Each plot is placed into a separate Here, Here, we want to make the same scatter with individual values of inhibition for both selected drugs and all the tested concentrations as in the previous example, but putting all the points on a single layer. So the number of points for each case will be 10. Number of lines is set by the same property as number of points in scatter plots. And in the same manner, instead
of setting the number of lines, one can define a set of all IDs via Here, we add two curves (for both selected drugs) sumultaniously. In the previous example, points, corresponding to each drug, were added separately, using two layers. Here, we show,
how to do it in one layer. Now we have 10 points with IDs from 0 to 9. The first five (with IDs from 0 to 4) correspond
to the first selected drug, while the second five - to the second selected drug. So we use remainder from devision of
the index In the previous example we used the Here, if the ID Each line in Here, we use the previously defined function Here, we just make the first line blue and the other - red. |
Show/hide full code