Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum awareness redo #20

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions TidyData.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -606,3 +606,36 @@ resultsTidy %<>%
```

</details>

## AnVIL Forum Awareness and Utilization

The question asked was also pretty granular in describing awareness of and multiple, perhaps co-occurring ways of utilizing the support forum. We want to simplify each set of answers from a respondent to report a binary yes/no they are aware of the forum from the set of responses they selected.

<details><summary>Question and possible answers</summary>

> Have you ever read or posted in our AnVIL Support Forum? (Select all that apply)

Possible answers include

* Read through others' posts
* Posted in
* Answered someone's post
* No, but aware of
* No, didn't know of

```{r}
resultsTidy %<>%
mutate(forumAwareness = factor(
case_when(
str_detect(AnVILSupportForum, "aware of|Answered|Posted|Read") ~ "Aware of",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great! More concise :)

str_detect(AnVILSupportForum, "didn't know of") ~ "Not Aware of"
), levels = c("Not Aware of", "Aware of")),
forumUse = factor(
case_when(
str_detect(AnVILSupportForum, "Answered|Posted|Read") ~ "Have/will utilize",
str_detect(AnVILSupportForum, "No, ") ~ "Have not utilized"
), levels = c("Have not utilized", "Have/will utilize"))
)
```

</details>
20 changes: 4 additions & 16 deletions anvilPoll2024ExtraAnalysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -590,22 +590,10 @@ pd1 / pd2

## Awareness: AnVIL Support Forum (supplemental)

```{r}
forumdf %<>% mutate(,
forumUse = factor(
case_when(
forumInteractionDescription == "Posted in" ~ "Have utilized",
forumInteractionDescription == "Answered someone's post" ~ "Have utilized",
forumInteractionDescription == "Read through others' posts" ~ "Have utilized",
forumInteractionDescription == "No but aware of" ~ "Have not utilized",
forumInteractionDescription == "No didn't know of" ~ "Have not utilized"
), levels = c("Have not utilized", "Have utilized")))
```

### Utilization

```{r}
forumPlotUtil <- forumdf %>%
forumPlotUtil <- resultsTidy %>%
group_by(UserType, forumUse) %>%
summarize(count = n()) %>%
ggplot(aes(y=reorder(forumUse, count),
Expand All @@ -620,7 +608,7 @@ stylize_bar(forumPlotUtil)
### Awareness or Utilization Color rather than y-axis split

```{r}
pf1 <- forumdf %>%
pf1 <- resultsTidy %>%
group_by(UserType, forumUse) %>%
summarize(count = n()) %>%
ggplot(aes(y=UserType,
Expand All @@ -633,11 +621,11 @@ pf1 <- forumdf %>%
ylab(" ") +
scale_fill_manual(values = c("#25445A", "#7EBAC0")) +
scale_x_continuous(breaks= pretty_breaks()) +
theme(legend.title = element_blank(), )
theme(legend.title = element_blank())
```

```{r}
pf2 <- forumdf %>%
pf2 <- resultsTidy %>%
group_by(UserType, forumAwareness) %>%
summarize(count = n()) %>%
ggplot(aes(y=UserType,
Expand Down
22 changes: 7 additions & 15 deletions anvilPoll2024MainAnalysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -719,28 +719,20 @@ forumdf <- resultsTidy %>%
replacement= "No ")) %>%
separate_longer_delim(AnVILSupportForum,
delim = ", ") %>%
group_by(UserType, CurrentUsageDescription, AnVILSupportForum) %>%
group_by(UserType, AnVILSupportForum) %>%
summarize(count = n()) %>%
drop_na() %>%
mutate(forumInteractionDescription =
mutate(AnVILSupportForum =
factor(AnVILSupportForum,
levels = c("Posted in", "Answered someone's post", "Read through others' posts", "No but aware of", "No didn't know of")),
forumAwareness = factor(
case_when(
forumInteractionDescription == "Posted in" ~ "Aware of",
forumInteractionDescription == "Answered someone's post" ~ "Aware of",
forumInteractionDescription == "Read through others' posts" ~ "Aware of",
forumInteractionDescription == "No but aware of" ~ "Aware of",
forumInteractionDescription == "No didn't know of" ~ "Not Aware of"
), levels = c("Not Aware of", "Aware of"))
)
levels = c("Posted in", "Answered someone's post", "Read through others' posts", "No but aware of", "No didn't know of"))
)
```

#### Raw responses

```{r}
forumPlotRaw <- ggplot(forumdf,
aes(y = reorder(forumInteractionDescription, count),
aes(y = reorder(AnVILSupportForum, count),
x = count,
fill = UserType)) +
geom_bar(stat = "identity") +
Expand All @@ -754,8 +746,8 @@ forumPlotRaw
#### Responses recoded to focus on awareness

```{r}
forumPlot <- ggplot(forumdf, aes(y = forumAwareness, x = count, fill = UserType)) +
geom_bar(stat = "identity") +
forumPlot <- ggplot(resultsTidy, aes(y = forumAwareness, fill = UserType)) +
geom_bar() +
ggtitle("Have you ever read or posted in our AnVIL Support Forum?")

forumPlot %<>% stylize_bar(ylabel = "Awareness")
Expand Down
Loading