有没有办法将y轴长度增加到最大值? 当我使用这段代码时:
par(mfrow=c(3,5))
for (i in c("mrts","p100e10","p75","PIA","pop1076","pop1616","pop2911","pop500","pop800","rev84","SugarCaneFarms","Swiss","USbanks","UScities","UScolleges"))
{
boxplot(dados[[i]],xlab=i)
}
然后它出现了具有低y轴的箱线图。我需要改变y轴,但我不想一个接一个地改变,我想要出现最后一个值。
我该怎么做? 如果不可能,我怎么能一个接一个地做呢? 感谢
答案 0 :(得分:2)
您可以使用y轴的最小值和最大值指定 ylim 。 在您的示例中:
boxplot(dados[[i]],xlab=i,ylim=c(min(dados[[i]]),max(dados[[i]])))
答案 1 :(得分:0)
char msg[100];
recv(clients_sd, msg, sizeof(msg), 0);
uint8_t len; /* store the length of the message here */
char message_received[len];
recv(clients_sd, message_received, sizeof(message_received), 0); /* get and store the message here */
这是xlim的必然结果,应该可以解决您的问题。