ãã£ããRã§æ£ã°ã©ãã¨æãç·ã°ã©ããéãããã®ãä½ããã¨ãã¦ããã£ããæéåãã¾ãããæçµçã«æããã®ã¯âã®ãããªãã®ãªã®ã§ããã ã2軸ã°ã©ãã®æ¸ãæ¹ãã種é¡ã®ç°ãªãã°ã©ãã®éãæ¹ãã«ã¤ãã¦ãããã調ã¹ãã¨ãããbarplot()ã¨plot()ãçµã¿åãããããæ¹ããããã§ãããggplot2ã§ããã»ãããããããã£ãã§ãã以ä¸ãã¾ãåãªã2軸ã°ã©ãã®æ¸ãæ¹ãããããããå¾ã§ãæ£ã¨æãç·ãçµã¿åãããæ¹æ³ãã¡ã¢ãã¦ããã¾ãã 2軸ã°ã©ãã®ä½ãæ¹ å·¦å³ã®è»¸ãã¤ãã£ã¦ã¹ã±ã¼ã«ã®ç°ãªãã°ã©ããéãããã ããªãããã»ã©é£ããã¯ãªããplot()ã§ããã§ãã¾ãã ä¾ãã°æãç·ã°ã©ããï¼ã¤éãããã®ã ã¨ããããã¾ã1ã¤ãã®å¤æ°ã®ã°ã©ãã軸ç¡ãã§æ¸ãããã¨ã«ãx軸ã¨å·¦è»¸ãæãããã®å¾ãpar(new=T)ã§ã2ã¤ãã®å¤æ°ã®ã°ã©ãã軸ãªãã§éãæãããä¸ã§ãå³è»¸ãæãã°ããã§ãã ã§ãæå¾ã«box()ã§
{{#tags}}- {{label}}
{{/tags}}