Files
bank-fraud-baf-lakehouse/man/plot_fraud_by_month.Rd
Rob Wiederstein df978d042f Refactor bucket structure: baf-fraud/ prefix under lake bucket
All functions now default to bucket_name = "lake" with "baf-fraud/"
prepended to all layer prefixes, matching the contemporary lakehouse
naming convention (one bucket per environment, project as prefix).

Migration: copy baf-fraud/ data to lake/baf-fraud/ on analyticsvm,
update BAF_BUCKET env var from "baf-fraud" to "lake".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 05:36:25 -05:00

35 lines
990 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{plot_fraud_by_month}
\alias{plot_fraud_by_month}
\title{Plot applications by month (Legit vs Fraud) on a log scale}
\usage{
plot_fraud_by_month(
dataset_prefix,
bucket_name = "lake",
palette = "Dark 3",
title = ""
)
}
\arguments{
\item{dataset_prefix}{Character. Prefix inside the bucket, e.g. "03_primary/variant=Base".}
\item{bucket_name}{Character. Bucket name. Default "lake".}
\item{palette}{Character. colorspace qualitative palette name. Default "Dark 3".}
\item{title}{Character. Plot title. Default "".}
}
\value{
A ggplot object.
}
\description{
Builds an exploratory chart of absolute application counts by month
split by outcome (Legit vs Fraud). Uses a log10 y-axis so rare fraud
remains visible on the same axis.
}
\details{
Data source: expects a cleaned "primary" dataset prefix (e.g. 03_primary/variant=Base)
stored in MinIO/S3, accessed via \code{connect_baf()}.
}