This Quarto report summarizes customer churn for DemoCo, an example company.
- View the report on Posit Connect
- Play with the code on Posit Cloud
You can build the reports yourself on Posit Cloud.
- Render the HTML report: Open
churn_report.qmd
and click on the drop-down arrow next to the Render button. Click Render democo-html. - Render the PDF report: Open
churn_report.qmd
and click on the drop-down arrow next to the Render button. Click Render democo-pdf.
churn_report.qmd
includes a parameter, product
, that controls which product type the report displays. There are three product types in the data: Standard, Premium, Professional.
To change the product type:
In the YAML header of churn_report.qmd
, update the value
field of the product
parameter to "Premium" or "Professional", then click Render.
params: product: label: "Product type" value: Professional input: select choices: [Standard, Premium, Professional]
We've published the HTML report to Connect. The report is set to run once a week. You can publish the report to your own Connect account using the Publish button in the RStudio IDE, found in the upper-right corner of the Editor pane. Click > Posit Connect > Publish document with source code > Add the URL of your Connect server > Publish.
See this guide for publishing Quarto documents for more details.
Both the HTML and PDF reports use a custom Quarto format. You can find the custom format in the _extensions
directory.
You can also use this project as a template for your own reports.
Here are some ways to modify the reports:
- Change the color scheme of the plots by changing the color palette object, defined in the first chunk of
churn_report.qmd
. - Read in different data in
churn_report.qmd
, and create your own plots. - Modify the theme by editing the Quarto extension located in
_extensions/democo
. For more information about custom Quarto HTML themes, see this guide.- Change
logo-with-slogan.png
to change the logo image used in the HTML report. - Change
logo.png
to change the logo image used in the PDF report.
- Change
- Update the PDF extension color scheme in
demopdf.tex
.light
defines the side panel color anddark
defines the title and heading font color