在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 astat_function
use the same x scale as the geom layer, for instancescale_x_log10
?To illustrate the problem, consider this example:
x <- rexp(100) base <- qplot(x, geom = "density") base + stat_function(fun = dexp, colour = "red")
So far so good. But now, I add a scale:
base + stat_function(fun = dexp, colour = "red") + scale_x_log10()
原文:https://stackoverflow.com/questions/33297813
最满意答案
事实证明,由于某些原因,我们安装的各种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 ...
-
Grails安装(Grails installation)[2022-01-24]
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' -
为什么Java(在一个特定的安装上)认为我是自签名的?(Why does Java (on one particular installation) think I'm self-signing?)[2023-11-08]
事实证明,由于某些原因,我们安装的各种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 ... -
树莓派和Java安装(Raspberry Pi and Java Installation)[2022-06-24]
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 ... -
自签名J2me应用程序(Self-Signing J2me App)[2024-05-10]
不要为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 ... -
JAI安装/使用(JAI installation/use)[2022-11-19]
运行应用程序时需要相同的类路径,就像编译它时一样。 即: 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 ...
-
java ant:指定应该使用哪个java安装来运行(java ant: specify which java installation should be used to run)[2023-05-20]
我相信这是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 ...