R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

test dashbord

this is test dasboard

library(ggplot2)
library(dplyr)
library(tidyr)
# Read the dataset from a CSV file
# Replace 'path_to_your_file.csv' with the actual path to your file
student_scores <- read.csv("/Users/For Students/Downloads/box_plot_dataset.csv")

# Convert dataset to long format for ggplot
student_scores_long <- student_scores %>%
  pivot_longer(cols = Math:History, names_to = "Subject", values_to = "Score")
# Create the box plot
ggplot(student_scores_long, aes(x = Subject, y = Score, fill = Subject)) +
  geom_boxplot() +
  labs(
    title = "Boxplot of Student Scores by Subject",
    x = "Subject",
    y = "Scores"
  ) +
  theme_minimal() +
  theme(legend.position = "none")