我正在按以下步骤传递面板标签以应用于ggplot:
pls <- data.frame(assay = factor(c('spike_manual_igg','rbd_manual_igg','np_manual_igg',
'spike_rob_igg','rbd_rob_igg','np_rob_igg',
'spike_rob_iga','rbd_rob_iga','np_rob_iga',
'np_rob_igm', 'rbd_rob_igm', 'spike_rob_igm'),
levels=c('spike_manual_igg','rbd_manual_igg','np_manual_igg',
'spike_rob_igg','rbd_rob_igg','np_rob_igg',
'spike_rob_iga','rbd_rob_iga','np_rob_iga',
'np_rob_igm', 'rbd_rob_igm', 'spike_rob_igm')),
y = rep(Inf,8),
x = rep(2,8),
hjustvar = rep(0,8) ,
vjustvar = rep(1.1,8),
mylab = c("A","B","C","D","E","F","G","H","I", "J", "K", "L"))
但我是此错误消息,
data.frame(assay = factor(c(“ spike_manual_igg”,“ rbd_manual_igg”,: 参数暗示不同的行数:12,8