2016-07-23 2 views
0

나는 R의 플롯에 맞게하기 위해 노력하고있어, 나는이 X- 축 레이블을 회전하는 몇 가지 투쟁있어 회전, 난 이미이 명령을 시도 pos = 1, xpd = TRUE축 및 이탤릭체 쓰기

하지만 라벨을 모르는다고해서 작동하지 않습니다. 또한 이탤릭체로 레이블 이름을 얻는 방법을 알지 못합니다.

누구에게 의견이 있습니까? 당신이 ?par에서

+0

당신이'ggplot2'를 사용 하시겠습니까? 그것으로 쉽게 할 수 있습니다 ... – Nate

+1

예제를 재현 가능하게 만드십시오. 그것은 우리와 특히 당신이 가지고있는 문제에 대해 생각하는 데 도움이 될 것입니다. 데이터 세트에서 데이터 또는 칩을 시뮬레이션하여 시뮬레이션 할 수 있습니다 (자세한 내용은 여기를 참조하십시오) (http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)). 이러한 모든 질문은 아마도 (R은 145000 개의 질문이 있습니다) 예를 들어 다음과 같이 응답했을 것입니다. http://stackoverflow.com/questions/8975797/how-do-you-make-just-the-x-lab- label-italics-and-not-the-y-lab-label-well-i –

+0

그냥 바 plot 명령입니다 – user6628798

답변

0

을 :) 감사합니다 (. 당신이 원하는 무엇 아닙니다)

'srt' The string rotation in degrees. See the comment about 
    'crt'. Only supported by 'text'. 

'las''font'를 계속 :

'las' numeric in {0,1,2,3}; the style of axis labels. 
     0: always parallel to the axis [_default_], 
     1: always horizontal, 
     2: always perpendicular to the axis, 
     3: always vertical. 
'font' An integer which specifies which font to use for text. If 
     possible, device drivers arrange so that 1 corresponds to 
     plain text (the default), 2 to bold face, 3 to italic and 4 
     to bold italic. 

이 당신에게 제공 할 수 있습니다 :

barplot(setNames(100 * 1:3, nm=c("abc","def","ghi")), las=2, font=3) 

enter image description here

아니면 :

barplot(setNames(100 * 1:3, nm=c("abc","def","ghi")), las=1, font=3) 

enter image description here

관련 문제