Hello,

I don't believe what you want is possible because:

axis.ticks.x and axis.ticks.y change the width of the tick marks

axis.ticks.length changes the length but there is no x and y axis versions, just a general purpose one.

Sorry I couldn't be of much help,

Rui Barradas

Às 11:01 de 29-06-2018, Maria Lathouri via R-help escreveu:
Dear Walter,
I tried to use scale_x_continuous but the arguments that I found was to change 
the labels, the limits and the breaks. I was only able to increase the number 
of the tick marks.
Best,Maria

     Στις 3:14 μ.μ. Πέμπτη, 28 Ιουνίου 2018, ο/η Walter Pina 
<walter.pina1...@gmail.com> έγραψε:
  Dear Maria, you are totally right!
Did you tried the scale_x_continuous function and its arguments?
RegardsWalter
2018-06-28 8:48 GMT-03:00 'Maria Lathouri' via ggplot2 
<ggpl...@googlegroups.com>:

Dear Abhimanyu,

If I am not mistaken, this online help is to post questions, and if possible, 
these questions to be answered. NOT for sarcastic and insulting posts. You 
could have just easily ignored my question. So simple.

Kind regards,Maria

     Στις 12:38 μ.μ. Πέμπτη, 28 Ιουνίου 2018, ο/η Maria Lathouri 
<mlatho...@yahoo.gr> έγραψε:
  I am sorry but I didn't get your point. And I am not new in data science!!

Maria

     Στις 11:38 π.μ. Πέμπτη, 28 Ιουνίου 2018, ο/η Abhimanyu Khatry 
<khatryabhima...@gmail.com> έγραψε:
  How a beginner can get started on ggplot ? Is it right to start this if 
someone is new to data science ?
On Wed, Jun 27, 2018 at 9:47 PM, 'Maria Lathouri' via ggplot2 
<ggpl...@googlegroups.com> wrote:

Dear all,


I would like to ask if there is a way to increase the length of the tick marks 
on the x-axis only.


I got the code:

p+ theme(axis.ticks.length=unit(. 30, "cm"))

but this increases the length for both x and y axis; whereas, I would like only 
on x-axis.


Thank you very much in advance.


Kind regards,
Maria


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to