2017-03-10 16 views
9

J çekirdeği, R çekirdeği içinde daha küçük bir rakam çizmek için nasıl yapılandırılacağını merak ediyorum.Jupyter'deki R parsellerinin boyutu nasıl değiştirilir?

options(repr.plot.width = 1, repr.plot.height = 0.75, repr.plot.res = 300) kullanmayı denedim, ancak sonuç biraz dağınık. Üretilen arsa büyüklüğünü değiştiriyor. Jupyter'de çıktı grafiği boyutunu doğrudan yapılandırabileceğim herhangi bir yol var mı? Başka bir deyişle, arsaları karıştırmamaya rağmen, ilk şekildeki boyutu ikinci şekilde boyutuna nasıl değiştirebilirim. enter image description here

cevap

1

enter image description here

elle kene boyutu, işaret boyutu ve metin boyutunu ayarlamak gerekir. Metin boyutu ve onay boyutu theme() işlevinden, geom_point() işlevinden işaretçi boyutu ile ayarlanabilir.

df_1 = data.frame(x=c(5, 6, 7, 8, 9), y = c(200, 225, 250, 270, 310)) 

options(repr.plot.width = 1, repr.plot.height = 0.75) 
ggplot(df_1, aes(x = x, y = y)) + geom_point(size = 0.3) + 
    theme(text = element_text(size = 3), element_line(size = 0.1)) 

enter image description here

İlgili konular