scale

Transform scaleX and maintain fixed right position

自闭症网瘾萝莉.ら 提交于 2020-08-27 16:05:52
问题 Using jquery to scale some text with mousemove but can't figure out how to make the word on the right (h2) scale out to the left from the right side of the word from the fixed right position. Instead it always scales from the left edge of the word. I want the 2 words combined to fill the width of the window at all times and as the cursor moves left, the left word (h1) shrinks and the right word (h2) grows and vice versa. There is also a problem that I am using some script to scale each word

Transform scaleX and maintain fixed right position

萝らか妹 提交于 2020-08-27 16:05:00
问题 Using jquery to scale some text with mousemove but can't figure out how to make the word on the right (h2) scale out to the left from the right side of the word from the fixed right position. Instead it always scales from the left edge of the word. I want the 2 words combined to fill the width of the window at all times and as the cursor moves left, the left word (h1) shrinks and the right word (h2) grows and vice versa. There is also a problem that I am using some script to scale each word

ggplot's scale_y_log10 behavior

安稳与你 提交于 2020-07-09 06:58:23
问题 Trying to plot a stacked histogram using ggplot : set.seed(1) my.df <- data.frame(param = runif(10000,0,1), x = runif(10000,0.5,1)) my.df$param.range <- cut(my.df$param, breaks = 5) require(ggplot2) not logging the y-axis: ggplot(my.df,aes_string(x = "x", fill = "param.range")) + geom_histogram(binwidth = 0.1, pad = TRUE) + scale_fill_grey() gives: But I want to log10+1 transform the y-axis to make it easier to read: ggplot(my.df, aes_string(x = "x", y = "..count..+1", fill = "param.range"))