R Programming: Elegant Cross Tables in R | gtsummary | publication ready cross tables

  Рет қаралды 5,373

Data Analytic

Data Analytic

Күн бұрын

Пікірлер: 5
@DataAnalytic
@DataAnalytic Ай бұрын
A quick clip to see the power of tbl_summary in action kzbin.infoUgkxdzJBFDR4FKAmq10tkbkBaBoAPnOdd4OH?si=KcUXQqTbwrx-qzhP
@dannie4356
@dannie4356 Жыл бұрын
for the most parts which worked, thank you! but the labelled function... tried checking everything already but i had to change the csv in order to change the variable labels... Also the outcome plot which i exported have a side bar in it? that is so weird!
@DataAnalytic
@DataAnalytic Жыл бұрын
Hello Just retested the code and it worked fine. I suspect that you might have missed the dot in front of the labels, it should be .labels labelled::set_variable_labels(.labels = c("Cut of diamond" , "Diamond colour")) Cant't think of any other issue. Try cutting and pasting the code in a new script and it should work library(labelled) library(ggplot2) library(dplyr) library(gtsummary) df % dplyr::select(cut, color)%>% labelled::set_variable_labels(.labels = c("Cut of diamond" , "Diamond colour")) %>% tbl_cross(row = cut , col = color , percent = "row" , missing ="no" , missing_text = "Missing Values" )%>% add_p(source_note = TRUE)%>% bold_labels()%>% bold_levels() About the side bar which you mentioned. Was it with the first table or the second ( which used the flextable conversion)
@marufadnanchowdhury1470
@marufadnanchowdhury1470 7 ай бұрын
@@DataAnalytic thanks for the code that helped
@MizanurShuvraRidwan
@MizanurShuvraRidwan 6 ай бұрын
i tried running the gtsummary package and it shows errors because my variables are factors. So, I guess y9ou need to mention what type of variables work for the gtsummary cross tabs
Describe and Summarise your data
19:44
R Programming 101
Рет қаралды 58 М.
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН
Add any Plot to your {gt} table
15:40
R for the Rest of Us
Рет қаралды 5 М.
How to Create Your Own Table Theme with the gt Package
12:25
R for the Rest of Us
Рет қаралды 4,3 М.
PERFECT TABLES IN #R ! 💪 {gtsummary}
11:13
yuzaR Data Science
Рет қаралды 30 М.
Top 10 Must-Know {dplyr} Commands for Data Wrangling in R!
8:01
yuzaR Data Science
Рет қаралды 8 М.
Manipulate your data.   Data wrangling.   R programmning for beginners.
29:59
R Programming 101
Рет қаралды 83 М.
Data Viz Summary Tables in R with gtExtras
11:06
Dr Lyndon Walker
Рет қаралды 4,5 М.
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН