|
Suppose I have the following
y <- rnorm(10) b <- as.factor(sample(1:4,10,replace=T)) qplot(1:10, y, shape=b)
How do I change the shapes that are used using ggplot2 ?
Started by chris_dubois on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Gt; y <- rnorm(10) > b <- as.factor(sample(1:4,10,replace=T)) > qplot(1:10, y, shape=b be:
qplot(1:10, y, shape=b) + scale_shape_manual(value=c(0,5,6,15))
The shapes are the same.
|
|
Hi. I have an image that I want to turn into a button. I want to draw a rounded rectangle on top of the image. I want to then be able to see the image inside the button, and outside of the button, I want transparent pixels.
I just can't seem to figure...
Started by mahboudz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
What you could do is merge....
You cannot "fill" an area with transparent pixels if you have several other layers below it .
Ctrl+I in pretty much any Windows photo app, so presumably Applekey (command?)+I in OSX .
Sounds like you just want to invert the mask.
|
|
Shapes Collection 2 (Crazy Shape Sequel) '.
Description by Blake: Alright, it's time to get in shape for my next set! This set is all about shapes and an ambush of color in every level. Mostly easy with some challenges. It's best to play on easy or medium...
Started by DizzyDee on
, 11 posts
by 8 people.
Answer Snippets (Read the full thread at ricochetinfinity):
A/A/A Thanks Dizzydee for your reply and....
Favorite levels were 25, 28 & 30.
I enjoyed all levels! Thanks for sharing!
AWESOME SET! Yay, this set is posted now Thanks for your post mhispider Great set, Blake!
I enjoyed the colorful & interesting gameplay .
|
Ask your Facebook Friends
|
02-26-2011, 02:52 PM Twenty-five years and 70 pounds ago I belonged to a running club in Boston. Needless to so the years and reduced activity have taken their toll, plus last year was basically lost due to health issues.
Now, I'm trying to get back in...
Started by Razormac on
, 15 posts
by 7 people.
Answer Snippets (Read the full thread at mac-forums):
It's AMAZING how fast the human body gets out of shape, especially considering how hard it is to get....
And believe a month.) and quit going for a while .
Time this has happened)...and thus I'm currently in the "getting back into shape" mode.
|
|
I have drawn an enclosed shape using CGContext and filled a default color. I want to change the fill color on some event, how can I do that. There is only one enclosed shape in the context.
Started by Ali Awais on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As you mention, just call [self setNeedsDisplay can't change the shape fill color without redrawing, but depending on the case, you can avoid.
Change the fill color by redrawing the whole shape.
|
|
I'm trying to find a way to get the text in a Visio shape to shrink to fit the width of the shape, otherwise leave the font at the default.
Is there a shapesheet function I can use to change the font size of the text so that it doesn't exceed the width...
Started by Jon Fournier on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Open the shape's shapesheet (Window....
I found that the following works.
I don't know of a way to size text to the shape unless you change the font size, but there are ways block using automation if the text exceeds the size of the shape.
|
|
Hi well I got a problem about scaling shapes.Well I m trying to scale two similar shapes.It is in 2d and each shape has n points .I found a statement like this from a paper I read
"The size of a shape is the root mean square distance between the shape...
Started by Emre on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If the shape 3 points (x1,y1) (x2,y2) (x3,y3) a scale metric S is calculated for both ....
Understanding what you wrote, then multiplying your matrix by a shape, (say, S2) will scale Each of S2 a scale metric instead of real scale value.
|
|
How can I modify the text of an existing excel shape from Delphi?
I can create a new shape and set its text
procedure TForm1.Button1Click(Sender: TObject); var excel, xlShape : variant; begin olecontainer1.CreateObject('Excel.Application',false); excel...
Started by Carlos Torres on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I am assuming that it is the 1st shape object:='new shape created from Delphi'; end else....
:= "mycustomshape";
So, when you know the name of the shape, you can refer to it with the name';
OR, you can refer to it using index (0 based).
|
|
I have a wpf application that has some shapes on a canvas I want to allow the user to click on a shape and then the shape gets stuck the the mouse until they click again.
So far I know very little about WPF so go easy on me ;)
Started by John Hunter on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In OnMouseMove, you calculate....
"Mouse dragging logic is fairly straightforward: In the OnMouseDown handler, you save the position of both the object you want to drag and the mouse pointer, and you call CaptureMouse .
Hopefully this is what you're looking for.
|
|
Is there a way to do a shape tween in javascript? Using canvas maybe...
Started by rizidoro on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Processing.js uses JavaScript to draw shapes....
There is a tweening library , but you will probably find it helpful for many other things .
If you will be doing graphics on the HTML 5 canvas element, you may want to check the Processing.js library .
|