xiangpin / ggstar Goto Github PK
View Code? Open in Web Editor NEW:star: star layer for ggplot2
:star: star layer for ggplot2
Hello,
Thanks a lot for the great package. I was wondering if there would be a way to use ggstar with subsetting, something like:
geom_star(aes(subset = (node == 480)), starshape = 25, size = 1.25, fill = '#44AA99', starstroke = .07, show.legend = FALSE)
Many thanks in advance, George.
Hi
We preparing the next release of ggplot2 and our reverse dependency checks show that your package is failing with the new version. Looking into it we see that your package somehow includes references to ggplot2 code from when it was build, which causes the check to emit the "Import not declared from..." error. Please see https://www.tidyverse.org/blog/2022/09/playing-on-the-same-team-as-your-dependecy/ for some more info about why this can cause issues.
You can install the release candidate of ggplot2 using devtools::install_github('tidyverse/[email protected]')
to test this out.
We plan to submit ggplot2 by the end of October and hope you can have a fix ready before then
Kind regards
Thomas
Title: "Question: Using Star Shapes with geom_node_point in ggraph"
Issue Description:
I have a question regarding using star shapes with the geom_node_point
function in ggraph.
Is it possible to customize the shape of the points to use star shapes in geom_node_point
? If so, what is the syntax or method to achieve this customization?
I've tried exploring the documentation, but I couldn't find a clear example or explanation for using star shapes specifically with geom_node_point
. Any guidance or information on this would be greatly appreciated!
Thank you!
Hi Shuangbin,
I wonder if it makes sense to add a semicircle primitive to the star shapes.
I think ggstar is really helpful in visualizing Visium spatial transcriptomics data. I have used it for some plot like below:
Adding a semicircle primitive will allow me to plot the Visium spots as two semicircles.
I have made an attempt on my branch. Could you kindly help me to see if it makes sense?
Thanks,
Chenhao
Is it possible to add this shape to the package?
(It's used in this case: https://twitter.com/SethWalder/status/1711106718531289105?t=3G6WGkVSxAYNGTTJqpR0ZA&s=19)
It's just a circle with a rectangle in the upper section.
hi Shuangbin,
awesome package, thanks for building and sharing it!
Do you think I could use these symbols with ggnet2?
It has an internal shape = 19
parameter, but the final plot is a ggplot object.
Thanks
Abel
Example
library(GGally)
library(network)
library(sna)
library(ggplot2)
# random graph
net = rgraph(10, mode = "graph", tprob = 0.5)
net = network(net, directed = FALSE)
# vertex names
network.vertex.names(net) = letters[1:10]
ggnet2(net, node.size = 6, node.color = "black", edge.size = 1, edge.color = "grey", node.shape = 18)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.