{
  "$schema": "https://pivograph.com/schemas/project/v1.json",
  "format": "pivograph-project",
  "schemaVersion": 1,
  "generator": {
    "name": "PivoGraph",
    "version": "1.4.0",
    "url": "https://pivograph.com"
  },
  "createdAt": "2026-09-14T15:21:12.997Z",
  "modifiedAt": "2026-09-14T15:21:12.997Z",
  "meta": {
    "title": "Creatinine and BUN Linear Regression",
    "description": "Synthetic serum creatinine and blood urea nitrogen measurements shown as an XY scatter plot. The least-squares fit, 95% confidence band, R², and P value are calculated from this example in PivoGraph.",
    "authors": [
      "PivoGraph"
    ],
    "license": "CC0-1.0",
    "source": "Synthetic data generated for this example"
  },
  "view": {
    "activeTableId": "ds-9d8d0166-e86f-4c0a-9824-5198459f6701",
    "workspaceView": "graph"
  },
  "tables": [
    {
      "id": "ds-9d8d0166-e86f-4c0a-9824-5198459f6701",
      "name": "Creatinine vs BUN",
      "format": "xy",
      "replicates": 1,
      "x": [
        1.6,
        2.5,
        2.7,
        2.75,
        3.1,
        3.35,
        3.55,
        3.55,
        3.65,
        3.8,
        3.85,
        3.95,
        3.9,
        4.1,
        3.85,
        4.05,
        4.25,
        4.3,
        4.45,
        4.55,
        4.45,
        4.65,
        4.65,
        4.6,
        4.7,
        4.85,
        5,
        5,
        5.25,
        5.3,
        5.2,
        5.1,
        5.4,
        5.5,
        5.25,
        5.55,
        5.55,
        5.65,
        5.7,
        5.7,
        5.75,
        5.85,
        5.85,
        5.9,
        5.95,
        5.95,
        5.95,
        6.1,
        6.15,
        6.25,
        6.25,
        6.35,
        6.45,
        6.5,
        6.55,
        6.65,
        6.7,
        6.35,
        6.9,
        7
      ],
      "dataSets": [
        {
          "name": "BUN",
          "title": "BUN",
          "values": [
            [
              35
            ],
            [
              21
            ],
            [
              20
            ],
            [
              28.5
            ],
            [
              43.5
            ],
            [
              41
            ],
            [
              44
            ],
            [
              49
            ],
            [
              35
            ],
            [
              22
            ],
            [
              31
            ],
            [
              35
            ],
            [
              44
            ],
            [
              53
            ],
            [
              62.5
            ],
            [
              67
            ],
            [
              46
            ],
            [
              43
            ],
            [
              53
            ],
            [
              59.5
            ],
            [
              65
            ],
            [
              64.5
            ],
            [
              46
            ],
            [
              49
            ],
            [
              51
            ],
            [
              57.5
            ],
            [
              43.5
            ],
            [
              40
            ],
            [
              44
            ],
            [
              47
            ],
            [
              52
            ],
            [
              55.5
            ],
            [
              56.5
            ],
            [
              61
            ],
            [
              59.5
            ],
            [
              55
            ],
            [
              52
            ],
            [
              40
            ],
            [
              49
            ],
            [
              57
            ],
            [
              58.5
            ],
            [
              60
            ],
            [
              55
            ],
            [
              64.5
            ],
            [
              45
            ],
            [
              41
            ],
            [
              59
            ],
            [
              53.5
            ],
            [
              58.5
            ],
            [
              60.5
            ],
            [
              55.5
            ],
            [
              62.5
            ],
            [
              57.5
            ],
            [
              61
            ],
            [
              53.5
            ],
            [
              65.5
            ],
            [
              62.5
            ],
            [
              66.5
            ],
            [
              65
            ],
            [
              63
            ]
          ]
        }
      ],
      "graph": {
        "variantId": "scatter",
        "plot": {
          "family": "xy",
          "options": {
            "center": "meanError",
            "error": "sd",
            "connectCenter": "mean",
            "seriesStackOrder": "laterOnTop"
          }
        },
        "activePresetId": "modern",
        "applyPresetNonColor": false,
        "styleOverrides": {
          "global": {
            "symbol": {
              "color": {
                "hex": "#b5e5f7",
                "alpha": 1
              },
              "shape": "circleBordered",
              "borderColor": {
                "hex": "#27272a",
                "alpha": 1
              },
              "borderThickness": 0.5
            },
            "curve": {
              "color": {
                "hex": "#000000",
                "alpha": 1
              },
              "thickness": 0.5
            },
            "confidenceBand": {
              "color": {
                "hex": "#000000",
                "alpha": 1
              },
              "fillOpacity": 0.15
            }
          },
          "perDataSet": {},
          "perPoint": {}
        },
        "graphSettingsOverride": {},
        "axesOverrides": {
          "frameAndOrigin": {
            "majorGrid": {
              "show": false,
              "color": "theme",
              "thickness": 0.5,
              "dashStyle": "solid"
            }
          },
          "xCategorical": {},
          "xContinuous": {
            "rangeMin": 0,
            "rangeMax": 10,
            "majorTickInterval": 2
          },
          "leftY": {
            "rangeMin": 0,
            "rangeMax": 100,
            "majorTickInterval": 20
          },
          "rightY": {},
          "titlesAndFonts": {
            "graphTitle": {
              "show": false,
              "distance": 6,
              "rotation": "horizontal",
              "font": {
                "family": "Arial, Helvetica, sans-serif",
                "size": 10,
                "bold": true,
                "italic": false
              }
            }
          }
        },
        "plotGeometry": {
          "widthPt": null,
          "heightPt": null
        },
        "dataSetVisibility": {},
        "elementActivation": {
          "global": {
            "line": false,
            "confidenceBand": true,
            "curve": true
          },
          "perDataSet": {},
          "graph": {}
        },
        "legend": {
          "visibility": "hidden",
          "dx": 0,
          "dy": 0,
          "fontFamily": "Arial, Helvetica, sans-serif",
          "fontSize": 9,
          "textColor": {
            "hex": "#000000",
            "alpha": 1
          },
          "bold": false,
          "italic": false,
          "keyScale": 1,
          "keyTextGap": 7,
          "itemGap": 0,
          "orientation": "vertical",
          "rotation": 0,
          "ungrouped": false,
          "sampleMode": "symbolLine",
          "itemOverrides": {},
          "partsOfWhole": {
            "label": true,
            "value": false,
            "percentage": false
          }
        },
        "partsOfWholeBorders": {
          "outer": {
            "color": {
              "hex": "#000000",
              "alpha": 1
            },
            "thicknessPt": 1
          },
          "inner": {
            "color": {
              "hex": "#000000",
              "alpha": 1
            },
            "thicknessPt": 0.5
          }
        }
      },
      "analyses": [
        {
          "id": "an-e152b9d1-f230-40cd-9958-582ea07e64f5",
          "method": "linearRegression",
          "params": {
            "confidenceLevel": 95
          }
        }
      ],
      "annotations": [
        {
          "id": "anno-18a98929-cc70-4f63-ba43-265d8439b2f3",
          "type": "text",
          "x": 198.89285755157476,
          "y": 164.57139178895216,
          "text": "R² = 0.46\nP < 0.0001",
          "fontSize": 10,
          "fontFamily": "Arial, Helvetica, sans-serif",
          "bold": false,
          "italic": false
        }
      ],
      "titles": {
        "x": {
          "text": "Serum creatinine (mg/dL)"
        },
        "y": {
          "text": "BUN (mg/dL)"
        }
      }
    }
  ]
}