On StackOverflow you are encouraged to show your own efforts to solve the problem. This helps to guide answers and helps to determine the level of explanation you require. Without more details, all I can provide is an example:
library(tidyverse)
devtools::install_github("abresler/nbastatR")
library(nbastatR)
library(ggrepel)
options(scipen = 1000000)
salaries <- nba_insider_salaries(assume_player_opt_out = T,
assume_team_doesnt_exercise = T,
return_message = T)
salaries %>%
group_by(nameTeam) %>%
filter(str_detect(slugSeason, "2020")) %>%
select(nameTeam, value) %>%
summarise(total = sum(value)) %>%
mutate(perc = total / sum(total)) %>%
mutate(ymax = cumsum(perc),
ymin = c(0, head(ymax, n=-1))) %>%
mutate(labelPosition = (ymax + ymin) / 2) %>%
rename(`Team Name` = nameTeam,
`Total Salaries` = total) %>%
ggplot(aes(ymax = ymax, ymin = ymin, xmax = 4, xmin = 3)) +
geom_rect(aes(fill = `Total Salaries`)) +
geom_label_repel(x = 4, aes(y = labelPosition,
label = `Team Name`),
min.segment.length = 0, size = 2, force = 3) +
coord_polar(theta = "y") +
xlim(c(2, 4)) +
ggtitle("NBA Total Salaries", subtitle = "2020 Season") +
scale_fill_continuous(labels = scales::dollar) +
theme_void()

Does this answer your question?