www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - ggplotd Fixed ratio between x and y axes

reply kerdemdemir <kerdemdemir gmail.com> writes:
How can I configure a fixed ratio between x and y axes in ggplotd 
?

I easily found what I am looking for in ggplot which ggplotd 
inspires a lot.
http://www.cookbook-r.com/Graphs/Axes_(ggplot2)/

But ggplotd documentation does not have any info about that. Even 
I go through the source code spend around half a hour I couldn't 
figure out how to achieve:

sp <- ggplot(dat, aes(xval, yval)) + geom_point()
sp + coord_fixed(ratio=1/3)

Erdem
Mar 11 2019
parent jmh530 <john.michael.hall gmail.com> writes:
On Monday, 11 March 2019 at 23:34:06 UTC, kerdemdemir wrote:
 How can I configure a fixed ratio between x and y axes in 
 ggplotd ?

 I easily found what I am looking for in ggplot which ggplotd 
 inspires a lot.
 http://www.cookbook-r.com/Graphs/Axes_(ggplot2)/

 But ggplotd documentation does not have any info about that. 
 Even I go through the source code spend around half a hour I 
 couldn't figure out how to achieve:

 sp <- ggplot(dat, aes(xval, yval)) + geom_point()
 sp + coord_fixed(ratio=1/3)

 Erdem
I searched through ggplotd and the documentation and couldn't find it. Unless I'm mistaken, it would be an enhancement to add, and you have already filed a request: https://github.com/BlackEdder/ggplotd/issues/58
Mar 12 2019