Name: Swetha P
Roll Number: 23BAD119
This experiment focuses on applying data visualisation techniques using R to analyze an e-commerce transactions dataset. The project visualizes transaction amount distribution, detects outliers, and examines monthly sales intensity across product categories using statistical plots.
The dataset (2.ecommerce_transactions.csv) contains transactional data from an e-commerce platform, including:
- Transaction amount
- Transaction date
- Product category
The data is used to analyze sales patterns and transaction behavior over time.
-
R Programming Language
-
RStudio
-
Libraries Used:
ggplot2– data visualizationdplyr– data manipulationlubridate– date handling
- Loaded the required R libraries (
ggplot2,dplyr,lubridate). - Imported the e-commerce transactions dataset using
read.csv(). - Converted the transaction date column into Date format for time-based analysis.
- Created a histogram to visualize the distribution of transaction amounts.
- Generated a boxplot to identify spread and potential outliers in transaction values.
- Extracted month information from transaction dates.
- Calculated total monthly sales for each product category.
- Visualized sales intensity using a heatmap based on month and product category.
- Histogram: Distribution of transaction amounts
- Boxplot: Identification of outliers and data spread
- Heatmap: Monthly sales intensity across product categories
This experiment demonstrates the effective use of data visualisation techniques to analyze e-commerce transaction data. The histogram and boxplot provide insights into transaction value distribution and variability, while the heatmap highlights seasonal sales patterns across product categories. These visualizations support better understanding of customer purchasing behavior and sales trends.