Displaying 3 results from an estimated 3 matches for "3099219".
2017 Aug 11
0
Annotation Ticks on the axis
...:
> Scale for 'y' is already present. Adding another scale for 'y', which will
> replace the existing scale.
>
StackOverflow question with extensive commentary:
Plot with 2 y axes, one y axis on the left, and another y axis on the right
https://stackoverflow.com/questions/3099219/plot-with-2-y-axes-one-y-axis-on-the-left-and-another-y-axis-on-the-right
David.
> My questions :
> 1. How do I change the breaks and labels to correspond to those in my
> earlier plot with R graphics? I don't want the 10^x format.
> 2. When I try with the annotation_logticks('...
2017 Aug 11
2
Annotation Ticks on the axis
Hi,
Thanks for the quick answer. I looked into the link that you provided. But
I am still not able to implement a solution. Here is my attempt :
library(ggplot2)
x<-1:10
y<-x^2
df<-data.frame(x=x,y=y)
p1<-ggplot(df,aes(x,y))+geom_point()+
scale_x_log10(
breaks = scales::trans_breaks("log10", function(x) 10^x),
labels = scales::trans_format("log10",
How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?
2013 Feb 25
3
How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?
Hi,
I have a data set with two continous variables that I want to plot MEANS (I
am not intrerested in median values) on a double-y graph. I also have 2
factors. I want the factor combinations plotted in different panes.
Dummy dataset:
mydata <- data.frame(factor1 = factor(rep(LETTERS[1:3], each = 40)),
factor2 = factor(rep(c(1:4), each = 10)),
y1 =