ggtextures | Drawing textured rectangles and bars with ggplot | Data Visualization library
kandi X-RAY | ggtextures Summary
kandi X-RAY | ggtextures Summary
Written by Claus O. Wilke. This package provides functions to draw textured rectangles and bars with the grid graphics system and with ggplot2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ggtextures
ggtextures Key Features
ggtextures Examples and Code Snippets
Community Discussions
Trending Discussions on ggtextures
QUESTION
I'm trying to build a visualisation with both drawn shapes (e.g. using geom_circle) and images. In both cases, I want to be able to position them on the page specifically with coordinates, rather than using one of the built in chart types.
See update further down...
However, I can either get the circles with the correct aspect ratio (i.e. round not oval) or the images, but not both. In the example below, you can see the image is not shown as square when it is.
I have tried various things including coord_fixed, scale_size_identity and coord_cartesian, but to no avail. The overall output will be landscape, which is why I have set the cartesian limits as I have.
This is a simplified version. In the full version, I'll get the coordinates from the data (which I'm fine with).
...ANSWER
Answered 2021-Feb-14 at 10:43I strongly feel you may have seen this thread: Can geom_image() from the ggimage package be made to preserve the image aspect ratio? - this was asked and answered by ggplot2 gurus such as Claus Wilke, Baptiste and Marco Sandri - it seems that ggimage is scaling to the device. Thus if you would like a square, you need to save to a device of square dimensions. Or, if you don't have a square image, of course, dimensions relative to your image used.
I used see::geom_point2
(no weird border), because I got the strong feeling that you have not used ggforce::geom_circle
. Also mild changes where I added the aes
call.
QUESTION
ANSWER
Answered 2020-Mar-16 at 09:09You can use the jitter
function here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ggtextures
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page