2013-08-10 4 views
1

주파수 테이블을 그릴 때 log = 'y'와 같은 옵션이 있습니까? 내 코드는 다음과 같습니다 :주파수 테이블 플롯 y 축 대수 눈금

df = read.table(myfile, header=F, sep=',') 
freq = table(df[[1]]) # make frequency table for the first column 
plot(freq, log='y') 

그러나 로그를 표시 할 수 없습니다. 오류 메시지 :

Warning messages: 
1: In plot.window(...) : 
    nonfinite axis limits [GScale(-inf,7.0814,2, .); log=1] 
2: In axis(...) : "log" is not a graphical parameter 

감사합니다.

답변

1

은 아마 당신은 이런 식으로 뭔가를 할 :

plot(as.numeric(names(freq)),as.numeric(freq),log='y',xlab='',ylab='freq') 
+0

의미가 있습니다! 정말 고마워! – Qing