---
title: "plot_sheet_heatmap"
---

[< Back to Reference](../reference.qmd) | [View source](https://codeberg.org/usrbinr/tidychain/src/branch/main/R/visualize.R#L255)

# `plot_sheet_heatmap()`

Plot Sheet Heatmap of Calculation Order

## Usage

```r
plot_sheet_heatmap(xlsx, sheet, max_rows = 100, max_cols = 26)
```

## Arguments

| Argument | Description |
|----------|-------------|
| `xlsx` | An xlsx_workbook object from `parse_xlsx()`, or a file path. |
| `sheet` | Sheet name to plot. Required. |
| `max_rows` | Maximum number of rows to display (for large sheets). Default is 100. |
| `max_cols` | Maximum number of columns to display. Default is 26 (A-Z). |

## Value

A ggplot2 object.

## Description

Creates a heatmap showing the relative calculation order of cells
within a sheet. Cells that were created earlier appear in cooler colors,
later cells in warmer colors.

## Examples

```r
## Not run: 
xlsx <- parse_xlsx("spreadsheet.xlsx")
plot_sheet_heatmap(xlsx, sheet = "Sheet1")

## End(Not run)
```

