This project examines how public universities use Instagram to communicate their institutional identity, develop recognizable branding, and engage with audiences.
This preliminary analysis uses manually collected Instagram data from university accounts. The final project will examine 20 posts per university.
# Install any missing packages
required_packages <- c("tidyverse", "knitr", "plotly")
for (pkg in required_packages) {
if (!requireNamespace(pkg, quietly = TRUE)) {
install.packages(pkg)
}
}
# Load packages
library(tidyverse)
library(knitr)
library(plotly)
# GitHub CSV URL
data_url <- "https://raw.githubusercontent.com/slauren694/6600-Project/refs/heads/main/Updated_GitHub_Instagram_Pilot_Data_Collection_Template.csv"
# Import Instagram data
instagram_data <- read_csv(
data_url,
show_col_types = FALSE
)
# Confirm successful import
cat("SUCCESS! Instagram data imported.\n\n")
## SUCCESS! Instagram data imported.
# Show number of rows and columns
cat("Total rows:", nrow(instagram_data), "\n")
## Total rows: 130
cat("Total columns:", ncol(instagram_data), "\n\n")
## Total columns: 23
# Display variable names
cat("COLUMN NAMES:\n")
## COLUMN NAMES:
print(names(instagram_data))
## [1] "university" "post_url" "post_date"
## [4] "collection_date" "original_poster" "post_type"
## [7] "content_pillar" "logo_visible" "school_colors"
## [10] "branded_clothing" "branded_cover" "campus_identifiable"
## [13] "brand_recognition" "student_experience" "athletics"
## [16] "personal_story" "faculty_leadership" "community_focus"
## [19] "likes" "comments" "repost's"
## [22] "shares" "notes"
# Preview first six rows
cat("\nFIRST SIX ROWS:\n")
##
## FIRST SIX ROWS:
print(head(instagram_data))
## # A tibble: 6 × 23
## university post_url post_date collection_date original_poster post_type
## <chr> <chr> <chr> <chr> <chr> <chr>
## 1 UTK https://www.in… 11/5/26 11/8/26 yes Image
## 2 UTK https://www.in… 11/6/26 11/8/26 yes Carousel
## 3 UTK https://www.in… 11/7/26 11/8/26 no Carousel
## 4 UTK https://www.in… 10/31/26 11/8/26 no Reel
## 5 UTK https://www.in… 10/31/26 11/8/26 yes Image
## 6 UTK https://www.in… 10/30/26 11/8/26 yes Carousel
## # ℹ 17 more variables: content_pillar <chr>, logo_visible <chr>,
## # school_colors <chr>, branded_clothing <chr>, branded_cover <chr>,
## # campus_identifiable <chr>, brand_recognition <dbl>,
## # student_experience <chr>, athletics <chr>, personal_story <chr>,
## # faculty_leadership <chr>, community_focus <chr>, likes <chr>,
## # comments <chr>, `repost's` <dbl>, shares <dbl>, notes <chr>
# Show dataset structure
cat("\nDATASET STRUCTURE:\n")
##
## DATASET STRUCTURE:
glimpse(instagram_data)
## Rows: 130
## Columns: 23
## $ university <chr> "UTK", "UTK", "UTK", "UTK", "UTK", "UTK", "UTK", "…
## $ post_url <chr> "https://www.instagram.com/p/DfX1SXzl6Gc/?utm_sour…
## $ post_date <chr> "11/5/26", "11/6/26", "11/7/26", "10/31/26", "10/3…
## $ collection_date <chr> "11/8/26", "11/8/26", "11/8/26", "11/8/26", "11/8/…
## $ original_poster <chr> "yes", "yes", "no", "no", "yes", "yes", "yes", "ye…
## $ post_type <chr> "Image", "Carousel", "Carousel", "Reel", "Image", …
## $ content_pillar <chr> "Trendy/Entertaining", "Trendy/Entertaining", "Inf…
## $ logo_visible <chr> "No", "No", "No", "No", "Yes", "No", "No", "No", "…
## $ school_colors <chr> "Yes", "Yes", "Yes", "Yes", "Yes", "yes", "Yes", "…
## $ branded_clothing <chr> "No", "No", "Yes", "Yes", "N/A", "No", "Yes", "Yes…
## $ branded_cover <chr> "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "N…
## $ campus_identifiable <chr> "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Y…
## $ brand_recognition <dbl> 1, 3, 2, 3, 3, 2, 3, 0, 1, 0, 2, 0, 0, 2, 3, 3, 1,…
## $ student_experience <chr> "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "N…
## $ athletics <chr> "No", "Yes", "No", "No", "No", "No", "No", "No", "…
## $ personal_story <chr> "No", "No", "No", "No", "No", "No", "Yes", "No", "…
## $ faculty_leadership <chr> "No", "No", "No", "No", "No", "No", "No", "No", "N…
## $ community_focus <chr> "Yes", "Yes", "Yes", "No", "No", "No", "No", "No",…
## $ likes <chr> "1,325", "8,965", "347", "763", "15,200", "8,179",…
## $ comments <chr> "12", "3", "2", "-", "14", "28", "53", "7", "17", …
## $ `repost's` <dbl> 1, 102, 4, 8, 569, 31, 5, 57, 662, 9, 4, 9, 5, 9, …
## $ shares <dbl> 9, 222, 24, 21, 948, 433, 58, 162, 1561, 9, 136, 7…
## $ notes <chr> "fall picture", "now and then pictures of main pla…
The following table shows how many Instagram posts have recorded likes and comments for each university. This helps identify the observations available for the preliminary analysis.
# Convert engagement metrics to numeric values
# Blank cells remain missing rather than becoming zero
instagram_data <- instagram_data %>%
mutate(
likes = parse_number(as.character(likes)),
comments = parse_number(as.character(comments))
)
# Count completed posts for each university
completion_summary <- instagram_data %>%
filter(!is.na(university), university != "") %>%
group_by(university) %>%
summarise(
total_rows = n(),
completed_posts = sum(!is.na(likes) & !is.na(comments)),
.groups = "drop"
)
# Display the results
kable(
completion_summary,
caption = "Instagram Data Collection Progress by University"
)
| university | total_rows | completed_posts |
|---|---|---|
| Auburn | 20 | 10 |
| UTK | 20 | 19 |
| UofA | 20 | 10 |
| UofG | 20 | 10 |
| UofK | 20 | 10 |
| UofSC | 20 | 9 |
This preliminary analysis examines 10 Instagram posts from each of six public universities, for a total of 60 posts. Posts with unavailable engagement metrics are retained for analyses that do not require those values.
# Select 10 collected posts per university
analysis_data <- instagram_data %>%
filter(
!is.na(university),
university != "",
!is.na(post_url),
post_url != "",
!is.na(post_type),
post_type != ""
) %>%
group_by(university) %>%
slice_head(n = 10) %>%
ungroup()
# Calculate total engagement only when both metrics are available
analysis_data <- analysis_data %>%
mutate(
total_engagement = if_else(
!is.na(likes) & !is.na(comments),
likes + comments,
NA_real_
)
)
# Verify the preliminary sample
analysis_data %>%
group_by(university) %>%
summarise(
posts = n(),
likes_available = sum(!is.na(likes)),
comments_available = sum(!is.na(comments)),
.groups = "drop"
) %>%
kable(
caption = "Preliminary Instagram Analysis Sample"
)
| university | posts | likes_available | comments_available |
|---|---|---|---|
| Auburn | 10 | 10 | 10 |
| UTK | 10 | 10 | 9 |
| UofA | 10 | 10 | 10 |
| UofG | 10 | 10 | 10 |
| UofK | 10 | 10 | 10 |
| UofSC | 10 | 9 | 10 |
Universities use Instagram to communicate with audiences through different types of content, including informational, entertaining, and promotional posts.
The following interactive chart shows the distribution of content categories across the 60 posts included in this preliminary analysis.
# Count Instagram posts by content category
content_summary <- analysis_data %>%
filter(!is.na(content_pillar), content_pillar != "") %>%
count(content_pillar, name = "posts") %>%
arrange(desc(posts))
# Display summary table
kable(
content_summary,
col.names = c("Content Category", "Number of Posts"),
caption = "Instagram Content Categories"
)
| Content Category | Number of Posts |
|---|---|
| Trendy/Entertaining | 41 |
| Informational/Educational | 17 |
| Promotional | 2 |
# Create interactive bar chart
content_chart <- plot_ly(
data = content_summary,
x = ~content_pillar,
y = ~posts,
type = "bar",
color = ~content_pillar,
text = ~paste0(
"Category: ", content_pillar,
"<br>Posts: ", posts
),
hoverinfo = "text"
) %>%
layout(
title = "Instagram Content Strategies Across Six Universities",
xaxis = list(title = "Content Category"),
yaxis = list(title = "Number of Posts"),
showlegend = FALSE
)
# Display interactive chart
content_chart
A central focus of this project is examining how recognizable university branding relates to audience engagement on Instagram.
The following analysis compares the average number of likes received by posts with a visible university logo and posts without a visible logo.
# Calculate average likes by visible logo presence
branding_summary <- analysis_data %>%
filter(
logo_visible %in% c("Yes", "No"),
!is.na(likes)
) %>%
group_by(logo_visible) %>%
summarise(
posts = n(),
average_likes = mean(likes),
median_likes = median(likes),
.groups = "drop"
)
# Display summary table
kable(
branding_summary,
digits = 1,
col.names = c(
"Visible Logo",
"Posts",
"Average Likes",
"Median Likes"
),
caption = "Instagram Engagement by University Logo Visibility"
)
| Visible Logo | Posts | Average Likes | Median Likes |
|---|---|---|---|
| No | 49 | 3808.0 | 2787 |
| Yes | 10 | 5302.5 | 2735 |
# Create interactive comparison chart
branding_chart <- plot_ly(
data = branding_summary,
x = ~logo_visible,
y = ~average_likes,
type = "bar",
color = ~logo_visible,
text = ~paste0(
"Visible Logo: ", logo_visible,
"<br>Posts: ", posts,
"<br>Average Likes: ", round(average_likes, 1),
"<br>Median Likes: ", round(median_likes, 1)
),
hoverinfo = "text"
) %>%
layout(
title = "Average Instagram Likes by University Logo Visibility",
xaxis = list(title = "University Logo Visible"),
yaxis = list(title = "Average Likes"),
showlegend = FALSE
)
# Display chart
branding_chart
This analysis compares average Instagram likes for posts with and without visible university logos within each university. Comparing posts within universities provides additional context for understanding branding and engagement patterns.
# Calculate average likes by university and logo visibility
university_branding <- analysis_data %>%
filter(
logo_visible %in% c("Yes", "No"),
!is.na(likes)
) %>%
group_by(university, logo_visible) %>%
summarise(
posts = n(),
average_likes = mean(likes),
median_likes = median(likes),
.groups = "drop"
)
# Display summary table
kable(
university_branding,
digits = 1,
caption = "Average Instagram Likes by University and Logo Visibility"
)
| university | logo_visible | posts | average_likes | median_likes |
|---|---|---|---|---|
| Auburn | No | 9 | 4450.4 | 3241.0 |
| Auburn | Yes | 1 | 14900.0 | 14900.0 |
| UTK | No | 9 | 4130.3 | 1325.0 |
| UTK | Yes | 1 | 15200.0 | 15200.0 |
| UofA | No | 7 | 1737.9 | 1602.0 |
| UofA | Yes | 3 | 3072.0 | 1841.0 |
| UofG | No | 10 | 3203.8 | 2478.0 |
| UofK | No | 6 | 1676.5 | 665.0 |
| UofK | Yes | 4 | 1862.2 | 1341.5 |
| UofSC | No | 8 | 6887.6 | 4323.0 |
| UofSC | Yes | 1 | 6260.0 | 6260.0 |
# Create interactive grouped bar chart
university_branding_chart <- plot_ly(
data = university_branding,
x = ~university,
y = ~average_likes,
color = ~logo_visible,
type = "bar",
text = ~paste0(
"University: ", university,
"<br>Logo Visible: ", logo_visible,
"<br>Posts: ", posts,
"<br>Average Likes: ", round(average_likes, 1),
"<br>Median Likes: ", round(median_likes, 1)
),
hoverinfo = "text"
) %>%
layout(
title = "University Branding and Instagram Engagement",
xaxis = list(title = "University"),
yaxis = list(title = "Average Likes"),
barmode = "group",
legend = list(title = list(text = "Logo Visible"))
)
# Display interactive chart
university_branding_chart
The following table shows the number of posts with and without visible university logos at each university. These counts provide context for interpreting differences in average engagement.
analysis_data %>%
filter(logo_visible %in% c("Yes", "No")) %>%
count(university, logo_visible, name = "posts") %>%
tidyr::pivot_wider(
names_from = logo_visible,
values_from = posts,
values_fill = 0
) %>%
rename(
`No Visible Logo` = No,
`Visible Logo` = Yes
) %>%
kable(
caption = "Logo Visibility Across the Preliminary Sample"
)
| university | No Visible Logo | Visible Logo |
|---|---|---|
| Auburn | 9 | 1 |
| UTK | 9 | 1 |
| UofA | 7 | 3 |
| UofG | 10 | 0 |
| UofK | 6 | 4 |
| UofSC | 9 | 1 |
University branding extends beyond the presence of an official logo. This analysis examines how frequently posts were coded as recognizable representations of their university’s identity.
# Check how brand recognition was coded
recognition_summary <- analysis_data %>%
count(brand_recognition, name = "posts") %>%
mutate(
percentage = round(posts / sum(posts) * 100, 1)
)
# Display summary table
kable(
recognition_summary,
caption = "Brand Recognition Across Instagram Posts"
)
| brand_recognition | posts | percentage |
|---|---|---|
| 0 | 17 | 28.3 |
| 1 | 11 | 18.3 |
| 2 | 13 | 21.7 |
| 3 | 19 | 31.7 |
# Compare recognition categories with average likes
recognition_engagement <- analysis_data %>%
filter(
!is.na(brand_recognition),
brand_recognition != "",
!is.na(likes)
) %>%
group_by(brand_recognition) %>%
summarise(
posts = n(),
average_likes = mean(likes),
median_likes = median(likes),
.groups = "drop"
)
# Display engagement comparison
kable(
recognition_engagement,
digits = 1,
caption = "Instagram Engagement by Brand Recognition"
)
| brand_recognition | posts | average_likes | median_likes |
|---|---|---|---|
| 0 | 16 | 2330.8 | 2189.5 |
| 1 | 11 | 3909.3 | 2624.0 |
| 2 | 13 | 5587.1 | 3381.0 |
| 3 | 19 | 4562.5 | 3123.0 |
This table examines how brand recognition scores relate to visible logos, school colors, and branded clothing in the preliminary Instagram sample.
analysis_data %>%
group_by(brand_recognition) %>%
summarise(
posts = n(),
visible_logos = sum(logo_visible == "Yes", na.rm = TRUE),
school_colors = sum(school_colors == "Yes", na.rm = TRUE),
branded_clothing = sum(branded_clothing == "Yes", na.rm = TRUE),
.groups = "drop"
) %>%
kable(
caption = "Brand Recognition and Visual Branding Elements"
)
| brand_recognition | posts | visible_logos | school_colors | branded_clothing |
|---|---|---|---|---|
| 0 | 17 | 0 | 7 | 2 |
| 1 | 11 | 1 | 10 | 2 |
| 2 | 13 | 0 | 11 | 9 |
| 3 | 19 | 9 | 17 | 14 |