Dear Abhimanyu and all,
I am really sorry for this; I thought that his comment was addressing to me since he replied to my question and I felt a bit insulted. I truly apologize for the misunderstanding.
The theme(axis.ticks.x=element_line() ) makes a horizontal line on the x-axis. I have been struggling to find a way to change just the tick length of one axis but with no luck. I think that there is no option.
Many thanks,Maria
ΣÏÎ¹Ï 2:00 ÎŒ.ÎŒ. Î ÎÎŒÏÏη, 28 ÎοÏ
ΜίοÏ
2018, ο/η Bri On <***@gmail.com> ÎγÏαÏε:
Dear Maria,
you are correct. This list is to get help with ggplot.
The message from Khatry is cryptic indeed. If I may, I think you have misunderstood Khatry. I understood it that this person is asking for a tip on how to start with ggplot, or whether one should start with ggplot if one is new to data science. If this is so, you may have understood an admirer seeking help as a person who means to harrass you.
Regarding your question, I am a little rusty, but don't recall that there is an option. However, I can modify the x-ticks with the following.
library(ggplot2)p1 <- ggplot(mtcars, aes(wt, mpg)) +Â geom_point() +Â labs(title = "Fuel economy declines as weight increases")p1 + theme(axis.ticks.x = element_line(colour='black', size = unit(.5, "cm")))
Now I would need to figure out why it only modifies certain ticks. As I said I am a little rusty.
Cheers,Brian
On Thu, 2018-06-28 at 11:48 +0000, 'Maria Lathouri' via ggplot2 wrote:
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 <***@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 <***@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 <***@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
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/ devtools/wiki/Reproducibility
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+unsubscribe@ googlegroups.com
More options: http://groups.google.com/ group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+unsubscribe@ googlegroups.com.
For more options, visit https://groups.google.com/d/ optout.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
Â
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
Â
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
Â
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.