只标记选定的休息时间 [英] Only label selected breaks

查看:158
本文介绍了只标记选定的休息时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于轴上的空间限制(对数转换),我只想在为连续序列显示中断时标记选择中断。当然,以下结果会产生一个错误:

Due to space constraints on the axes (log-transformed) I would like to only label select breaks while displaying breaks for a continuous sequence. Of course the following results in an error:

scale_x_continuous(breaks=c(-10,0,10,20,30),labels=c(-10,0,10,30))

Error: breaks and labels have unequal lengths

有没有办法解决这个问题?

Is there a method to get around this problem?

推荐答案

请尝试:

scale_x_continuous(breaks=c(-10,0,10,20,30), labels=c(-10,0,10,"",30))

这篇关于只标记选定的休息时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆