0

马赛克图的标签不适合屏幕(它们被部分切割)所以我想将图向右移动/移动,以便标签完全适合——尝试使用“par”功能但没有有用——有什么想法吗?

structure(list(Road_Type = structure(c(4L, 4L, 4L, 4L, 4L, 4L
), .Label = c("Roundabout", "One way Street", "Dual Carriageway", 
"Single carriageway", "Slip Road"), class = "factor"), Accident_Severity_combined = structure(c(2L, 
2L, 2L, 2L, 1L, 2L), .Label = c("Serious", "Slight"), class = "factor")), .Names = c("Road_Type", 
"Accident_Severity_combined"), row.names = c(NA, 6L), class = "data.frame")
> 


mos <- mosaic(~Road_Type + Accident_Severity_combined, data = uk1,              shade = TRUE, legend = TRUE,
labeling_args = list(set_varnames =     c(Accident_Severity_combined="Gender", Road_Type="survival"),
highlighting_fill = c("darlblue","red")
labeling=labeling_border(
rot_labels = c(90, 0, 90, 0), 
just_labels=c("left","left","right","right"),
tl_varnames = FALSE,
gp_labels = gpar(fontsize = 9)))
4

0 回答 0