-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to centre colour coded points in a dotplot? #161
Comments
You can specify the parameter colors which is an array with the colors you want to use. If you want you can share the image and I will help you with the parameters |
Thank you for your quick reply! Sorry for the confusion. The plots currently being produced already have a configuration parameter that specifies the colours we aimed for, like you said, with the colour array. The problem we are having is that the dot points appear to be plotted side by side with no preference for what category is put in the centre of the plot. What we are trying to aim for is the last two images, where the blue, green, and red points are placed in the centre because they are coloured, whereas the black points are not. Thank you! |
What happens if you sort the data? (Sorry, I am out of town and I cannot check) |
Thanks for the suggestion! I'll try it out and get back to you. Will the first values in the data array be plotted first and therefore be centered on the plot? |
Yes |
To sort the data, is there any way to identify how the bins are defined (the number of bins, ranges etc.)? |
No at this time. Do you have some example so I can evaluate what will it take? |
For the example that @SunnyMug posted (TSPAN6) |
:-) I need a little more explanation than this |
@SunnyMug shared a copy of our repo with you. Are you able to access it? |
I meant how do you want to define the bins? What do you mean bins. A range for the data? the position of the dots? |
Ok. Now I get it. The binning algorithm has a random seeding which also depends in the order of the object being plotted, the number of the objects and the distribution of the data (which is calculated from a density function. I suppose I could sort the 'x' position before I plot the data. Wow, that seems to be a little bit of work and probably will slow things a little bit. The y coordinate is a lot more trickier so I will need to think more about it. |
Hi there,
I currently have a dotplot generated with CanvasXpress showing this:
The current datset inputted only has 12 datapoints but the same plot is planned to be used for potentially hunderds of datapoints. Are there any configuration options that allow us to specify a specific data category (coloured point) to be centered in the graph? For example, All datapoints that are coloured should be centre but not black.
Here are some examples for the desired plot:
Thank you for your time!
The text was updated successfully, but these errors were encountered: