Skip to content

Issues with rob_summary() and rob_traffic_light() #155

@Emanuel-1986

Description

@Emanuel-1986

Hi,

I am using my previous R code to build risk of bias plots using robvis, something which I had done quite frequently and without hassle over the past 2 years. However, now it is giving me a lot of issues.

Below is my code:

library('readxl')
library('robvis') 
library('ggplot2') 
library("tidyverse") 

setwd("D:/xxxxx/xxxxxxx")

E1 = read_xlsx("D:/xxxxx/xxxxxx/ROB.student.xlsx")
str(E1) # pro

library(dplyr)

E1 <- E1 %>% mutate(across(everything(), as.factor))
str(E1) # pro

plot<-rob_summary(E1, tool = "ROB1", overall = F, weighted = F)
plot + ggtitle("Summary risk of bias plot using the Cochrane risk of bias tool version 1")+
  theme(plot.title = element_text(hjust = 0.3))  # Move title slightly right

robvis::rob_traffic_light(E1, tool = "ROB1", psize = 7) 

The issues are:

  1. The summary plot (second image below) shows only 5 domains when my data has 7 domains for the ROB1. The last 2 are not visible. How can I include the last 2 domains?
  2. The traffic light plot shows the authors' names in a vertical position, whereas in previous years, they were correctly shown horizontally. Instead of D7, it writes the domain's name, while for D1:D6, it writes the abbreviation in the top row of the plot. How can I rotate the authors' names? And change the name of the last domain to D7 in the plot?

R version: 4.4.2
OS: Windows 10

Regards,
Emanuel

Image

Image

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions