用plotnine复现ggplot2绘制出来的图
NameError: name 'dashdot' is not defined
import pandas as pd
import patchworklib as pw
from plotnine import *
from plotnine.data import *
dat=pd.read_excel("Fig E3 Source Data.xlsx", sheet_name = "Metabolome")
FigE3a_metab =(ggplot(dat,aes(x='NEU', y='EOS')) +
geom_point(size=2)+
theme_bw()+ theme(panel_grid = element_blank()) +
geom_hline(aes(yintercept = 0, linetype='dashdot')) +
geom_hline(aes(yintercept = 1, linetype="dashed")) +
geom_hline(aes(yintercept = -1, linetype="dashed")) +
geom_vline(aes(xintercept = -1, linetype="dashed")) +
geom_vline(aes(xintercept = 0, linetype='dashdot')) +
geom_vline(aes(xintercept = 1, linetype="dashed")) +
xlab("Correlation NEU: Directionality x - log(P)")+
ylab("Correlation EOS: Directionality x - log(P)")+
ggtitle("Differential MetaB modules"))
print(FigE3a_metab)
plotnine官网手册中linetype中短长虚线对应的就是dashdot,我不知道为什么会报错, 怎样修改才能运行出图片呢