How do I different color each edge for polygon star in Coreldraw CC6? - polygon

I want to do different color edges in polygon star. How do I this? I prepared easy sample for you in Print. That's here :
http://i.hizliresim.com/LpGmYj.png

Just a guess, but what if you convert the star to curves, break the curve apart and color each side separately? Then you could group the separate curves to move/scale them together.

Related

Triangle-shaped points appear more transparent than the circular points

As I have asked in the this question, I'm trying to plot curves varying according to different quantities, and I am mapping these quantities to the color and shape aesthetics.
However, when I do that, the dots having triangle shape look more transparent than the circular dots.
How can I solve this issue?
PS: I'm using the same code & dataset I have given in the linked question.

Different color points in R

I have the following R-code,
x1=c(3,2,4,1,2,4,4)
x2=c(4,2,4,4,1,3,1)
Y=c("red","red","red","red","blue","blue","blue")
plot(x1,x2,col=Y,pch=8)
grid(NULL,NULL,col="cornsilk2")
legend("right",c("Point","star"),col=c("red","blue"))
That creates a plot as seen below
There are two things that I wish to change however I am not sure how to go about it.
1) I want to change the types of points that appear using the pch feature in plot. So for example, I want the red points to appear as a star and the blue points to appear as a triangle. How would I go about this?
2) I want the legend to show those symbols and be coloured respectively correctly. For example, instead of having "Point" it should be a "." that is coloured blue or red depending on what colour I decide to assign it.
Many thanks for the help.
You specify a vector like your color:
SHAPE = ifelse(Y=="red",8,2)
plot(x1,x2,col=Y,pch=SHAPE)
legend("right",c("Point","star"),col=c("blue","red"),pch=c(2,8))

Making one variable be shapes of different colors (ggplot2)

So right now I've got this plot:
my plot
(sorry it's not inline image, this is my first time on Stack Overflow and it wouldn't let me post images)
The plot is produced with this code:
ggplot(potassium.data,
aes(x=Experiment,y=value,
colour=Pedigree))+geom_jitter()+labs(title=element)
The problem is, there are 31 different maize pedigrees being plotted here, so it's difficult to distinguish the colors from each other. I was wondering if it's possible to make it so that the color and shape of the point are used to uniquely identify a pedigree, so that for example one pedigree is red squares, another is red circles, a third one is blue squares, a fourth is blue circles, and so on. This would make it far easier to distinguish the points. Anyone know how to do this?
I don't think thats possible, if you do the shaping by pedigree you will just end up with as many categories of shapes as you have colors now.
geom_label() and geom_text() would let you plot the cultivar id directly onto the plot, then maybe you could build a separate column for something equivalent to genus, so that the cultivars could be grouped somehow (maybe A, B, PH, etc). Then you could color by that "genus" column, which would make the plot look better:
ggplot(potassium.data,
aes(x=Experiment,y=value, label=Pedigree, colour = genus))+
geom_label(position = position_jitter())+
labs(title=element)
Ideally you would end up with a plot colored by the genus while only plotting the suffix digits currently in Pedigree.
I have to agree with Nathan and Joran, the plot is quite confusing by having so many different points and adding shapes into the mix is unlikely to help.
To answer your question you should be able to use shape=pedigree, but maybe to make the graph more readable you could join the pedigrees from one experiment to the other with a geom_line so the reader spends less time scanning.

How to use more than 6 shapes in ggplot?

I have data that I would like to plot and use shapes to symbolise the data . In total I have 20 potential different pieces of data to be represented by shapes.
e.g they are labeled such as R/Hand elbow, R/Hand knee, R/Hand foot, L/Hand shoulder, L/Hand neck etc etc
So far I keep coming up with a limitation of 6 shapes and they are all different colors.
One option I do have is to not only use shapes but also color code the shapes.
So 10 different shapes with each shape representing a different piece of categorical data, but all shapes being Blue.
and then the same 10 shapes but all shapes begin colored Red.
The 20 pieces of data are locations on the body (10 on the left and 10 on the right).
thanks
You can create your own discrete scale with the scale_manual variants. It this case you will need scale_shape_manual. When you type ?pch you get the help page hich gives the values you can use. In your case, you use for example:
scale_shape_manual(values=1:20, labels=c("R/Hand elbow", "R/Hand knee", "R/Hand foot", "L/Hand shoulder", "L/Hand neck", and so on ...))
However, using 20 different shapes could result in a confusing plot. As you want to distuinghish body parts, you might consider using faceting between for example left and right part of the body.

Finding set of colours that are distinguishable to each other

I am writing a graph plotting program. I thus am looking ways to obtain colours that are distinguishable to each other in order to plot various graphs in one cell.
Is there an algorithm or some website that obtains rgb values that matches this criteria?
EDIT: I am looking for 16 different colours
For an automatic solution, you can take one color as the base color and obtain good matching colors by changing the hue in the HSV/HSB color space. If you need 4 colors for example you could rotate the hue by 90° for each color.
If the number of lines on the graph isn't too large (i.e. you can pick colours by hand), I rather like this (http://colorschemedesigner.com/) for choosing colours that work together, but stand out from each other.

Resources