On closer inspection, change n=5 to n=10 in
major.ticks <- pretty(lims,n=5)
Then, I get 10^0, 10^1, etc. with all the minors. Is this what you want?
David
On 5/7/2014 10:32 AM, Shane Carey wrote:
Hey,
Im using the function below to create minor tick marks on log scale. It
only plots every se
Shane
I ran your code with debugging and found this for minor ticks
[1]> minor.ticks
[1] 1.00 1.301030 1.477121 1.602060 1.698970 1.778151 1.845098
1.903090 1.954243 3.00 3.301030
[12] 3.477121 3.602060 3.698970 3.778151 3.845098 3.903090 3.954243
5.00 5.301030 5.477121 5.602060
[
Hey,
Im using the function below to create minor tick marks on log scale. It
only plots every second marker, i.e. 10^0, 10^2 and so on. How do I get it
to plot at every interval? Thanks
minor.ticks.axis <- function(ax,n,t.ratio=0.5,mn,mx,...){
lims <- par("usr")
if(ax %in%c(1,3)) lims <- lim
Hello,
Perhaps something like:
> axis( 2, 0:10/10, las = 1, tcl = -.2 )
Romain
Le 09/06/10 11:08, Stéphane Adamowicz a écrit :
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot(x,y,log="y",type="l",lty=3, ylim=c(0.01,2),yaxp=c(0.01,1,1),las=1)
I would appreciate having also minor tick marks in-between the 3
On Mon, Jun 1, 2009 at 2:18 PM, stephen sefick wrote:
> library(ggplot2)
>
> melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
> 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
> 13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418,
> 12600, 12631,
library(ggplot2)
melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418,
12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), site =
structure(c(
On 2/24/08, Saptarshi Guha <[EMAIL PROTECTED]> wrote:
> Hello,
> Is there a way to add minor tick marks to the Y-axis of a lattice
> plots?
Yes, see
http://lmdvr.r-forge.r-project.org/figures/figures.html?chapter=08;figure=08_05;theme=stdBW;code=right
-Deepayan
___
Hello,
Is there a way to add minor tick marks to the Y-axis of a lattice
plots?
Thank you
Saptarshi
Saptarshi Guha | [EMAIL PROTECTED] | http://www.stat.purdue.edu/~sguha
[[alternative HTML version deleted]]
__
R-hel
9 matches
Mail list logo