首页 \ 问答 \ 在ggplot2中,如何使stat_function受scale_x_log10的约束?(In ggplot2, how do I make stat_function subject to scale_x_log10?)

在ggplot2中,如何使stat_function受scale_x_log10的约束?(In ggplot2, how do I make stat_function subject to scale_x_log10?)

ggplot2 ,如何使stat_function使用与geom层相同的x比例,例如scale_x_log10

为了说明问题,请考虑以下示例:

x <- rexp(100)
base <- qplot(x, geom = "density")
base + stat_function(fun = dexp, colour = "red")

没有规模

到现在为止还挺好。 但现在,我添加了一个比例:

base + stat_function(fun = dexp, colour = "red") + scale_x_log10()

有规模


In ggplot2, how do I make a stat_function use the same x scale as the geom layer, for instance scale_x_log10?

To illustrate the problem, consider this example:

x <- rexp(100)
base <- qplot(x, geom = "density")
base + stat_function(fun = dexp, colour = "red")

without scale

So far so good. But now, I add a scale:

base + stat_function(fun = dexp, colour = "red") + scale_x_log10()

with scale


原文:https://stackoverflow.com/questions/33297813
更新时间:2022-06-07 22:06

最满意答案

事实证明,由于某些原因,我们安装的各种Windows版本最终会得到截然不同的根证书集。 所有工作良好的机器都安装了大约320个证书,那些无法工作的机器只有大约70个.COMODO最终向我们发出了一个替换证书,旨在验证不同的根...这在我们所有的机器上都能正常工作。


It turns out that for some reason, various Windows versions that we have installed can end up with dramatically different sets of root certificates. All the machines that worked fine had around 320 some certs installed, the machines that fail to work only had around 70. COMODO eventually issued us a replacement certificate designed to validate against a different root... That works fine on all our machines.

相关问答

更多
  • 我没有编译它,但我会尝试跟随。 我根据如何检测Windows上安装的Sun JRE选择了注册表项? 。 ;-------------------------------- ;Defines !define JavaRegKey 'HKLM "Software\JavaSoft\Java Runtime Environment" ""' ;-------------------------------- ;Installer Sections Section 'Java Runtime' SecJav ...
  • JAVA_HOME = "C:\Program Files\Java\jdk1.7.0\bin"不能包含'bin' JAVA_HOME = "C:\Program Files\Java\jdk1.7.0\bin" mustn't include 'bin'
  • 事实证明,由于某些原因,我们安装的各种Windows版本最终会得到截然不同的根证书集。 所有工作良好的机器都安装了大约320个证书,那些无法工作的机器只有大约70个.COMODO最终向我们发出了一个替换证书,旨在验证不同的根...这在我们所有的机器上都能正常工作。 It turns out that for some reason, various Windows versions that we have installed can end up with dramatically different s ...
  • JRE听起来好像它已经安装好了,但是在你运行它之前你需要编译你的java。 由于Pi相对较慢,请使用PC / Mac编译您的应用程序: javac myfile.java 然后,您可以将myfile.class复制到您的Pi并运行: java your.package.name.myfile 在复制到您的Pi之前,您可以在PC / Mac(或Linux :)上测试此项)。 将其他问题通过将java添加到PATH来解决。 编辑/ etc / profile,并添加: PATH=${PATH}:/path/to ...
  • 不要为Java ME应用程序进行自签名。 它不值得MIDlet签名,也不适用于大多数设备。 所以更好的选择是从一些第三方供应商处购买。 Don't go with self-signing for Java ME applications. Its not worth for MIDlet signing and also its not working most of the devices. So better option is buy it from some third party provide ...
  • 运行应用程序时需要相同的类路径,就像编译它时一样。 即: java -cp .;../ressources/ressources.jar;../ressources/jai_windows-i586.jar Main You need the same class path when running your application, as when you compiled it. I.e.: java -cp .;../ressources/ressources.jar;../ressources/j ...
  • 你有没有试过http://iphonedevwiki.net/index.php/Xcode#Developing_without_Provisioning_Profile ? 您提供的链接仅适用于SDK 2.x. Have you tried http://iphonedevwiki.net/index.php/Xcode#Developing_without_Provisioning_Profile? The link you've provided only works for SDK 2.x.
  • /usr/sbin/alternatives: No such file or directory Debian,Ubuntu或其克隆中没有/usr/sbin/alternatives 。 相反,有/usr/bin/update-alternatives 。 我建议临时符号链接来解决转换不良的RPM包: mkdir -p /usr/sbin ln -s /usr/bin/update-alternatives /usr/sbin/alternatives /usr/sbin/alternatives: ...
  • 在上面提供的链接中,没有提到java的版本。 此外,安装步骤是直接的。 无论如何,只需使用apt-get指定包的确切版本即可(apache2安装示例) sudo apt-get install apache2=2.2.20-1ubuntu1 通过这个链接 In the link you have provided above there is not mention about version of java. Also, the installation steps are direct. Anyway ...
  • 我相信这是 Ant任务的 jvm属性。 jvm - 用于调用Java虚拟机的命令,默认为'java'。 该命令由java.lang.Runtime.exec()解析。 如果禁用fork,则忽略。 I believe this is what jvm attribute of the Ant task is about. jvm - the command used to invoke the Java Virtual Machine, default is 'java'. The ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)