본문 바로가기
연구 노트/R Python

plotnine ggplot2 in python

by Dr. STEAM 2021. 11. 26.
반응형

import matplotlib.pyplot as plt
%matplotlib inline
plt.figure(figsize=(28,12))
import plotnine as p9
p9.ggplot(data=df, mapping=p9.aes(x='Site_No', y='Vis_flag'))+ p9.geom_bar(stat='identity')

 

 

728x90
반응형