# Dot Plot

Dot plot is special 2D scatterplot with X-axis is a categorical variable and Y-axis is a numerical variable, typically used to visualize gene/protein expression (RNA-seq or scRNA-seq), with dots representing observations (samples or cells), X-axis showing treatment groups and y-axis showing expression level on an appropriate scale.

In differential analysis report data node, select the **dot plot** icon (<img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-daeb178219058736656a04e9a7a4a8c9f2eeb8b8%2Fimage%20(253).png?alt=media" alt="" data-size="line">) in the *View* column to invoke the plot in data viewer. The plot will be displayed in a new browser tab.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-de54ced9c542af87087424cef1ec9d0fe84b60d7%2Fimage%20(254).png?alt=media" alt=""><figcaption></figcaption></figure>

The chart title is based on the feature (e.g. gene or protein) that the plot was invoked on. The y-axis is scaled automatically, based on the range of the data, and the units correspond to the input node. Dots represent observations (e.g. samples or cells). Hovering the cursor over a sample invokes a popup balloon message shows sample ID and the respective expression value.

The order of the group on the X-axis by default is based on the order in the attribute management page in the Data tab. However, you can manually click on the name of the group on X-axis, drag and drop to change the order

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-5a265b0dd7fcea196a129def25aa1ae8a520409e%2Fimage%20(255).png?alt=media" alt=""><figcaption></figcaption></figure>

When you have a lot of observations to display, you can choose to add box-whiskers and/or violin plot on the graph, by turning on/off the options to display the different type of plots in **Style** card from the configuration panel.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-f632981b22f085a41a9736dc408b4c80ace0a29e%2Fimage%20(257).png?alt=media" alt=""><figcaption></figcaption></figure>

You can have multiple categorical attributes on X-axis in the **Axes** configuration card. Click on the attribute to drag up and down to change the order of the attributes displayed on the X-axis.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-5d0fe398ec15e82fc0cd0d68c390dbf2a472dce3%2Fimage%20(258).png?alt=media" alt=""><figcaption></figcaption></figure>

Click the **Export image** button to save a PNG, SVG, or PDF image to your computer.

Click the **To notebook** button to send the image to a page in the Notebook.
